summaryrefslogtreecommitdiff
path: root/lua/settings.lua
diff options
context:
space:
mode:
authorRamiz Sarfaraj <[email protected]>2021-07-07 23:19:28 +0530
committerGitHub <[email protected]>2021-07-07 13:49:28 -0400
commit5e2a0df7ef8752b2af38a670fdf89ef48e4daa0f (patch)
treef9d0ca4e8cbca59a48007e279d14e4d1561b6276 /lua/settings.lua
parentd8d0fe34e674734b61da6c87927f4571f7bb3d77 (diff)
option for user to configure the cmdheight and number_width as per their liking. (#764)
* few of my changes * option for user configuration of cmdheight and number_width
Diffstat (limited to 'lua/settings.lua')
-rw-r--r--lua/settings.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/settings.lua b/lua/settings.lua
index 371cdb08..3bf5d338 100644
--- a/lua/settings.lua
+++ b/lua/settings.lua
@@ -23,7 +23,7 @@ vim.g.colors_name = O.colorscheme
opt.backup = false -- creates a backup file
opt.clipboard = "unnamedplus" -- allows neovim to access the system clipboard
-opt.cmdheight = 2 -- more space in the neovim command line for displaying messages
+opt.cmdheight = O.cmdheight -- more space in the neovim command line for displaying messages
opt.colorcolumn = "99999" -- fix indentline for now
opt.completeopt = { "menuone", "noselect" }
opt.conceallevel = 0 -- so that `` is visible in markdown files
@@ -56,5 +56,6 @@ opt.tabstop = 4 -- insert 4 spaces for a tab
opt.cursorline = O.cursorline -- highlight the current line
opt.number = O.number -- set numbered lines
opt.relativenumber = O.relative_number -- set relative numbered lines
+opt.numberwidth = O.number_width -- set number column width to 2 {default 4}
opt.signcolumn = "yes" -- always show the sign column, otherwise it would shift the text each time
opt.wrap = O.wrap_lines -- display lines as one long line