diff --git a/lua/filetypes.lua b/lua/filetypes.lua index 7c232a4..06635db 100644 --- a/lua/filetypes.lua +++ b/lua/filetypes.lua @@ -12,5 +12,11 @@ vim.filetype.add({ end, idr = "idris2", wgsl = "wgsl", + nix = function(_, bufnr) + vim.bo[bufnr].shiftwidth = 2 + vim.bo[bufnr].tabstop = 2 + vim.bo[bufnr].expandtab = true + return "nix" + end, }, })