nvim/ftplugin/nix.vim (view raw)
1 2 3 4 5 6
augroup NixFmt autocmd! autocmd BufWritePost *.nix | silent! exec '!nixpkgs-fmt %' | silent! edit augroup END setlocal ts=2 sts=2 sw=2 expandtab