aboutsummaryrefslogtreecommitdiff
path: root/vim-plugin/ftplugin
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-10-27 12:40:42 +0100
committerAkshay <[email protected]>2021-10-27 12:43:23 +0100
commitf909b20c540ea99dddfd04b8439ee35b8dd703b8 (patch)
treecc9a60108f975419bf2621262739071a5f0a1be6 /vim-plugin/ftplugin
parented1ee66b06add4c22e4922ffa762f097355c7431 (diff)
allow stdin input to statix-single, vim pluginv0.2.2
Diffstat (limited to 'vim-plugin/ftplugin')
-rw-r--r--vim-plugin/ftplugin/nix.vim8
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 @@
1setlocal makeprg=statix\ check\ -o\ errfmt\ %
2setlocal errorformat=%f>%l:%c:%t:%n:%m
3
4augroup StatixCheck
5 autocmd!
6 autocmd! BufWritePost *.nix | silent make! | silent redraw!
7 autocmd QuickFixCmdPost [^l]* cwindow
8augroup END