aboutsummaryrefslogtreecommitdiff
path: root/vim-plugin/ftplugin/nix.vim
blob: 885857f3da954ae7bf64da4f93bb1b3a26d9ba84 (plain)
1
2
3
4
5
6
7
8
setlocal makeprg=statix\ check\ -o\ errfmt\ %
setlocal errorformat=%f>%l:%c:%t:%n:%m

augroup StatixCheck
    autocmd!
    autocmd! BufWritePost *.nix | silent make! | silent redraw!
    autocmd QuickFixCmdPost [^l]* cwindow
augroup END