feat(filetypes): Set nix files to use 2 spaces for indentation

This commit is contained in:
kalmenn 2024-11-20 14:09:13 +01:00
parent 337b67c7a4
commit e1ec30f328
Signed by: kalmenn
GPG key ID: F500055C44BC3834

View file

@ -12,5 +12,11 @@ vim.filetype.add({
end, end,
idr = "idris2", idr = "idris2",
wgsl = "wgsl", wgsl = "wgsl",
nix = function(_, bufnr)
vim.bo[bufnr].shiftwidth = 2
vim.bo[bufnr].tabstop = 2
vim.bo[bufnr].expandtab = true
return "nix"
end,
}, },
}) })