aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2021-03-04 01:20:23 -0500
committertdro <tdro@users.noreply.github.com>2021-03-04 01:20:23 -0500
commit0712acbe40c53973f6fdf69e1a71a63768b4036e (patch)
tree10796b7cdff7b4ac7a96039fc715b5ad7e457ae6
parent6ded8c9a8ffcb95c87bab949f1392686e69b2877 (diff)
downloaddotfiles-0712acbe40c53973f6fdf69e1a71a63768b4036e.tar.gz
dotfiles-0712acbe40c53973f6fdf69e1a71a63768b4036e.tar.bz2
dotfiles-0712acbe40c53973f6fdf69e1a71a63768b4036e.zip
.vimrc: Add Haskell lint
-rw-r--r--.vimrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 39b9003..52fcb0c 100644
--- a/.vimrc
+++ b/.vimrc
@@ -312,6 +312,7 @@ augroup AutoCommands
autocmd FileType bash,sh autocmd! BufWritePost <buffer> :call ShellCheck()
autocmd FileType nix autocmd! BufWritePost <buffer> silent call NixCheck()
autocmd FileType elixir autocmd! BufWritePost <buffer> :call ElixirFormat()
+ autocmd FileType haskell autocmd! BufWritePost <buffer> silent exe '!' . expand(g:notify) . ' ' . '"$(hlint % 2>&1)"'
autocmd FileType json autocmd! BufWritePost <buffer> silent exe '!' . expand(g:notify) . ' ' . '"$(jsonlint -i % 2>&1 && echo ''json OK: %'')"'
autocmd FileType css autocmd! BufWritePost <buffer> silent exe '!' . expand(g:notify) . ' ' . '"$(prettier --write --parser css % 2>&1)"'
autocmd FileType rust autocmd! BufWritePost <buffer> silent exe '!' . expand(g:notify) . ' ' . '"$(rustfmt % 2>&1 && echo ''rustfmt OK: %'')"'