From eaeb57e4116699e42353b794127ed7adf7f3250b Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Sat, 25 May 2024 02:14:52 +0200 Subject: [PATCH] Add scrolloff to vim opt --- home/.config/nvim/lua/vim_opt.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home/.config/nvim/lua/vim_opt.lua b/home/.config/nvim/lua/vim_opt.lua index da771aa..986e14a 100644 --- a/home/.config/nvim/lua/vim_opt.lua +++ b/home/.config/nvim/lua/vim_opt.lua @@ -30,6 +30,9 @@ opt.ignorecase = true opt.smartcase = true opt.incsearch = true +-- Command +opt.inccommand = "nosplit" + -- Disable mouse support opt.mouse = "" @@ -52,8 +55,14 @@ opt.splitbelow = true -- Removes the extra command line bar at the bottom, using lualine instead opt.cmdheight = 0 +-- Statusline opt.laststatus = 3 +-- Terminal integration opt.termguicolors = true +opt.termsync = true + +-- Sets a minimum number of lines to keep above and below the cursor +opt.scrolloff = 4 return opt