programs/editors/neovim: add back indent for nix files
This commit is contained in:
parent
6ab835555c
commit
8df739598c
1 changed files with 9 additions and 0 deletions
|
@ -27,6 +27,15 @@
|
|||
vim.opt.formatoptions:remove('c')
|
||||
vim.opt.formatoptions:remove('r')
|
||||
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 = {
|
||||
|
|
Loading…
Reference in a new issue