diff options
Diffstat (limited to '.config/nvim/lua/mango/lib.lua')
-rw-r--r-- | .config/nvim/lua/mango/lib.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/nvim/lua/mango/lib.lua b/.config/nvim/lua/mango/lib.lua new file mode 100644 index 0000000..60857c8 --- /dev/null +++ b/.config/nvim/lua/mango/lib.lua @@ -0,0 +1,11 @@ +local M = {} + +function M.setTabWidth(tw, localp) + local opt = localp and vim.opt_local or vim.opt + + opt.tabstop = tw + opt.softtabstop = tw + opt.shiftwidth = tw +end + +return M |