From 0712acbe40c53973f6fdf69e1a71a63768b4036e Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 4 Mar 2021 01:20:23 -0500 Subject: .vimrc: Add Haskell lint --- .vimrc | 1 + 1 file changed, 1 insertion(+) 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 :call ShellCheck() autocmd FileType nix autocmd! BufWritePost silent call NixCheck() autocmd FileType elixir autocmd! BufWritePost :call ElixirFormat() + autocmd FileType haskell autocmd! BufWritePost silent exe '!' . expand(g:notify) . ' ' . '"$(hlint % 2>&1)"' autocmd FileType json autocmd! BufWritePost silent exe '!' . expand(g:notify) . ' ' . '"$(jsonlint -i % 2>&1 && echo ''json OK: %'')"' autocmd FileType css autocmd! BufWritePost silent exe '!' . expand(g:notify) . ' ' . '"$(prettier --write --parser css % 2>&1)"' autocmd FileType rust autocmd! BufWritePost silent exe '!' . expand(g:notify) . ' ' . '"$(rustfmt % 2>&1 && echo ''rustfmt OK: %'')"' -- cgit v1.2.3