diff options
Diffstat (limited to 'vim-plugin/ftplugin')
-rw-r--r-- | vim-plugin/ftplugin/nix.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vim-plugin/ftplugin/nix.vim b/vim-plugin/ftplugin/nix.vim new file mode 100644 index 0000000..885857f --- /dev/null +++ b/vim-plugin/ftplugin/nix.vim | |||
@@ -0,0 +1,8 @@ | |||
1 | setlocal makeprg=statix\ check\ -o\ errfmt\ % | ||
2 | setlocal errorformat=%f>%l:%c:%t:%n:%m | ||
3 | |||
4 | augroup StatixCheck | ||
5 | autocmd! | ||
6 | autocmd! BufWritePost *.nix | silent make! | silent redraw! | ||
7 | autocmd QuickFixCmdPost [^l]* cwindow | ||
8 | augroup END | ||