summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGruak <[email protected]>2021-07-08 17:09:43 +0200
committerGruak <[email protected]>2021-07-08 17:09:43 +0200
commit3ec856a78d0e00f93110d57d908ea5c39aa081ae (patch)
tree316f2d81db104375cbad66fd3adf39933f073866
parent84d6ea7a6302a916a38af262685db03902ce4866 (diff)
add scrolloff config option
-rw-r--r--lua/default-config.lua1
-rw-r--r--lua/settings.lua1
2 files changed, 2 insertions, 0 deletions
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