diff options
author | Ramiz Sarfaraj <[email protected]> | 2021-07-07 23:19:28 +0530 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-07 13:49:28 -0400 |
commit | 5e2a0df7ef8752b2af38a670fdf89ef48e4daa0f (patch) | |
tree | f9d0ca4e8cbca59a48007e279d14e4d1561b6276 | |
parent | d8d0fe34e674734b61da6c87927f4571f7bb3d77 (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
-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 |