diff options
author | tafryn <[email protected]> | 2021-06-26 11:08:40 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-26 14:08:40 -0400 |
commit | 1c869402c1413341fead39d5aa3688b25cffe4f1 (patch) | |
tree | 2697d2d80195408d6b65f3699fc3a02e2df05c5e | |
parent | 0b0ba391930c7ea6eb7a28f394e324bc21472dbe (diff) |
Allow cursorline option to be configured by lv-settings (#526)
-rw-r--r-- | lua/lv-globals.lua | 1 | ||||
-rw-r--r-- | lua/settings.lua | 2 | ||||
-rw-r--r-- | lv-settings.lua | 3 |
3 files changed, 5 insertions, 1 deletions
diff --git a/lua/lv-globals.lua b/lua/lv-globals.lua index feaf3e3c..3fb72aa9 100644 --- a/lua/lv-globals.lua +++ b/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, diff --git a/lua/settings.lua b/lua/settings.lua index 4343dd2d..e859abf2 100644 --- a/lua/settings.lua +++ b/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 diff --git a/lv-settings.lua b/lv-settings.lua index 02d9dad9..2d96715d 100644 --- a/lv-settings.lua +++ b/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 |