diff options
-rw-r--r-- | lua/default-config.lua | 2 | ||||
-rw-r--r-- | lua/settings.lua | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lua/default-config.lua b/lua/default-config.lua index 540ab034..45e93302 100644 --- a/lua/default-config.lua +++ b/lua/default-config.lua @@ -12,6 +12,8 @@ O = { wrap_lines = false, number = true, relative_number = true, + number_width = 4, + cmdheight = 2, cursorline = true, shell = "bash", timeoutlen = 100, 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 |