diff options
| author | Abouzar Parvan <[email protected]> | 2021-07-09 22:56:42 +0430 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-09 14:26:42 -0400 | 
| commit | 986da71d30d2445d0ac8093ce0a65ef1bc87a2f9 (patch) | |
| tree | 3d8d0dbbe9abd56e26325566f576fc21c6081506 /lua | |
| parent | 79fe019da813277cf57c5bd6f8a730e3f03cda88 (diff) | |
make shiftwidth and tabstop configurable (#818)0.4.7
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/default-config.lua | 2 | ||||
| -rw-r--r-- | lua/settings.lua | 4 | 
2 files changed, 4 insertions, 2 deletions
| diff --git a/lua/default-config.lua b/lua/default-config.lua index f84e5428..059eb477 100644 --- a/lua/default-config.lua +++ b/lua/default-config.lua @@ -18,6 +18,8 @@ O = {    number = true,    relative_number = false,    number_width = 4, +  shift_width = 2, +  tab_stop = 2,    cmdheight = 2,    cursorline = true,    shell = "bash", diff --git a/lua/settings.lua b/lua/settings.lua index 88d1c942..2a388e42 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -47,9 +47,9 @@ opt.undofile = true -- enable persisten undo  opt.updatetime = 300 -- faster completion  opt.writebackup = false -- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited  opt.expandtab = true -- convert tabs to spaces -opt.shiftwidth = 2 -- the number of spaces inserted for each indentation +opt.shiftwidth = O.shift_width -- the number of spaces inserted for each indentation  opt.shortmess:append "c" -opt.tabstop = 2 -- insert 4 spaces for a tab +opt.tabstop = O.tab_stop -- 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 | 
