diff options
| author | Michiel Schuurmans <michielschuurmans@pm.me> | 2026-11-07 21:10:38 +0100 |
|---|---|---|
| committer | Michiel Schuurmans <michielschuurmans@pm.me> | 2026-11-07 21:10:38 +0100 |
| commit | 68ee2d765e99c37316187f4091b8c5f84c5dd7c0 (patch) | |
| tree | c5b5412a3c0781feca5ddb79b7640615a5d7eae9 /lua/config/remap.lua | |
| parent | e8e6f10d33bfee7b6f79de470064d7aed26b9222 (diff) | |
| download | nvim-master.tar.xz nvim-master.zip | |
Diffstat (limited to 'lua/config/remap.lua')
| -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, +}) |
