From 619bb9d7e347b3546d932d8ed58bb453fe0f49c9 Mon Sep 17 00:00:00 2001 From: Jasper Bok Date: Tue, 27 Feb 2024 18:19:05 +0100 Subject: [PATCH] Set nvim's scrolloff to '8' This keeps a bit of space around the cursor and the screen borders when scrolling. --- private_dot_config/nvim/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/private_dot_config/nvim/init.lua b/private_dot_config/nvim/init.lua index aee8af3..1bb3449 100644 --- a/private_dot_config/nvim/init.lua +++ b/private_dot_config/nvim/init.lua @@ -32,6 +32,9 @@ vim.opt.mouse = '' vim.g.mapleader = " " +-- Always show 8 lines above or below the cursor when scrolling. +vim.opt.scrolloff = 8 + -- ---------------------------------- -- Filetype configurations -- ----------------------------------