From 3ec856a78d0e00f93110d57d908ea5c39aa081ae Mon Sep 17 00:00:00 2001 From: Gruak <43846312+Gruak@users.noreply.github.com> Date: Thu, 8 Jul 2021 17:09:43 +0200 Subject: [PATCH] add scrolloff config option --- lua/default-config.lua | 1 + lua/settings.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/lua/default-config.lua b/lua/default-config.lua index b88b5af4..87a9e99b 100644 --- a/lua/default-config.lua +++ b/lua/default-config.lua @@ -17,6 +17,7 @@ O = { cmdheight = 2, cursorline = true, shell = "bash", + scrolloff = 0, timeoutlen = 100, nvim_tree_disable_netrw = 0, ignore_case = true, diff --git a/lua/settings.lua b/lua/settings.lua index e1da3965..044708b9 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -34,6 +34,7 @@ opt.hlsearch = O.hl_search -- highlight all matches on previous search pattern opt.ignorecase = O.ignore_case -- ignore case in search patterns opt.mouse = "a" -- allow the mouse to be used in neovim opt.pumheight = 10 -- pop up menu height +opt.scrolloff = O.scrolloff -- minimal number of screen lines to keep above and below the cursor opt.showmode = false -- we don't need to see things like -- INSERT -- anymore opt.showtabline = 2 -- always show tabs opt.smartcase = O.smart_case -- smart case