add scrolloff config option

This commit is contained in:
Gruak 2021-07-08 17:09:43 +02:00
parent 84d6ea7a63
commit 3ec856a78d
2 changed files with 2 additions and 0 deletions

View file

@ -17,6 +17,7 @@ O = {
cmdheight = 2,
cursorline = true,
shell = "bash",
scrolloff = 0,
timeoutlen = 100,
nvim_tree_disable_netrw = 0,
ignore_case = true,

View file

@ -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