1 2 3 4
augroup NixFmt autocmd! autocmd BufWritePost *.nix | silent! exec '!nixpkgs-fmt %' | silent! edit augroup END