From 6b61f90e566bcc693871cc817050cf07c8ca15e7 Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 18 Feb 2025 03:05:01 +0100 Subject: Improve scrolloff --- init.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 108fdeb..92b8feb 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,8 @@ require("ache.config") require("ache.lazy") -vim.o.scrolloff = 20 -- Keep 20 lines below and above the cursor -vim.o.scrolljump = 6 -- Scroll 6 lines instead of one when reached an "end of screen" (above or below). +vim.o.scrolloff = 10 --[[ + Keep X lines below and above the cursor + cf scrolloffEOF.lua to extend this feature. + --]] +vim.o.scrolljump = 6 -- Scroll X lines instead of one when reached an "end of screen" (above or below). -- cgit v1.3-2-g11bf