nvim: add nvim configs

This commit is contained in:
inkch
2024-01-14 23:03:03 +09:00
parent 6339cdb490
commit 4446e72a04
19 changed files with 274 additions and 0 deletions

View File

@ -0,0 +1,10 @@
-- Functions
local setIndentWidth = function(w)
vim.opt.tabstop = w
vim.opt.softtabstop = w
vim.opt.shiftwidth = w
print("Tab width is now set", w)
end
vim.keymap.set('n', '<leader>T2', function() setIndentWidth(2) end)
vim.keymap.set('n', '<leader>T4', function() setIndentWidth(4) end)