Browse Source

add scrolloff config option

Gruak 4 years ago
parent
commit
3ec856a78d
2 changed files with 2 additions and 0 deletions
  1. 1 0
      lua/default-config.lua
  2. 1 0
      lua/settings.lua

+ 1 - 0
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,

+ 1 - 0
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