extra: nvim: Apply 2-spaces indent rule for YAML files too

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-04-24 21:22:26 +02:00
parent 4f6b09a153
commit 93f3c05973
Signed by: c8h4
GPG key ID: 6817E9C75C0785D7

View file

@ -1,5 +1,5 @@
vim.api.nvim_create_autocmd({ 'FileType' }, {
pattern = { 'lua', 'html', 'nix' },
pattern = { 'lua', 'html', 'nix', 'yml' },
callback = function()
vim.opt_local.tabstop = 2
vim.opt_local.shiftwidth = 2