programs/editors/neovim: add back indent for nix files

This commit is contained in:
Anthony Rodriguez 2025-01-28 13:04:32 +01:00
parent 6ab835555c
commit 8df739598c
Signed by: nezia
SSH key fingerprint: SHA256:R/ue1eTzTHUoo77lJD/3fSUsyL4AwvcHImU5BAZai+8

View file

@ -27,6 +27,15 @@
vim.opt.formatoptions:remove('c') vim.opt.formatoptions:remove('c')
vim.opt.formatoptions:remove('r') vim.opt.formatoptions:remove('r')
vim.opt.formatoptions:remove('o') vim.opt.formatoptions:remove('o')
vim.api.nvim_create_autocmd("FileType", {
pattern = "nix",
callback = function(opts)
local bo = vim.bo[opts.buf]
bo.tabstop = 2
bo.shiftwidth = 2
end
})
''; '';
maps = { maps = {