diff options
Diffstat (limited to 'lua/config')
| -rw-r--r-- | lua/config/remap.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/config/remap.lua b/lua/config/remap.lua index d860c37..1cbc0f5 100644 --- a/lua/config/remap.lua +++ b/lua/config/remap.lua @@ -12,3 +12,13 @@ vim.opt.shiftwidth = 8 vim.opt.number = true vim.opt.relativenumber = true vim.opt.signcolumn = "number" + +vim.api.nvim_create_autocmd("FileType", { + pattern = { "yaml", "yml" }, + callback = function() + vim.opt_local.expandtab = true + vim.opt_local.tabstop = 2 + vim.opt_local.shiftwidth = 2 + vim.opt_local.softtabstop = 2 + end, +}) |
