Browse Source

Allow cursorline option to be configured by lv-settings (#526)

tafryn 4 years ago
parent
commit
1c869402c1
3 changed files with 5 additions and 1 deletions
  1. 1 0
      lua/lv-globals.lua
  2. 1 1
      lua/settings.lua
  3. 3 0
      lv-settings.lua

+ 1 - 0
lua/lv-globals.lua

@@ -10,6 +10,7 @@ O = {
     wrap_lines = false,
     number = true,
     relative_number = true,
+    cursorline = true,
     shell = 'bash',
 	timeoutlen = 100,
     nvim_tree_disable_netrw = 0,

+ 1 - 1
lua/settings.lua

@@ -25,7 +25,7 @@ vim.cmd('set expandtab') -- Converts tabs to spaces
 vim.bo.smartindent = true -- Makes indenting smart
 vim.wo.number = O.number -- set numbered lines
 vim.wo.relativenumber = O.relative_number -- set relative number
-vim.wo.cursorline = true -- Enable highlighting of the current line
+vim.wo.cursorline = O.cursorline -- set highlighting of the current line
 vim.o.showtabline = 2 -- Always show tabs
 vim.o.showmode = false -- We don't need to see things like -- INSERT -- anymore
 vim.o.backup = false -- This is recommended by coc

+ 3 - 0
lv-settings.lua

@@ -68,3 +68,6 @@ O.go.autoformat = true
 
 -- Turn off relative_numbers
 -- O.relative_number = false
+
+-- Turn off cursorline
+-- O.cursorline = false