aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2021-03-04 02:20:01 -0500
committertdro <tdro@users.noreply.github.com>2021-03-04 02:20:01 -0500
commit8b474fa487f79187b71fd631dd48fa2a1cf9fabd (patch)
treeb6219ff9cf498c361ce3220a642abddb3c29c5ab /.vimrc
parent6ef84fa6d76caeba16a9fa8e138376896aa4a197 (diff)
downloaddotfiles-8b474fa487f79187b71fd631dd48fa2a1cf9fabd.tar.gz
dotfiles-8b474fa487f79187b71fd631dd48fa2a1cf9fabd.tar.bz2
dotfiles-8b474fa487f79187b71fd631dd48fa2a1cf9fabd.zip
.vimrc: Add brittany
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index c30eab2..21cbf26 100644
--- a/.vimrc
+++ b/.vimrc
@@ -292,10 +292,10 @@ augroup AutoCommands
autocmd BufWritePost *.txt,*.md :only | :term ++rows=10 vale-wrapper %
" Linting file type post write commands.
- autocmd FileType haskell autocmd! BufWritePost <buffer> silent exe '!' . expand(g:notify) . ' ' . '"$(hlint % 2>&1)"'
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: %'')"'
autocmd FileType json autocmd! BufWritePost <buffer> silent exe '!' . expand(g:notify) . ' ' . '"$(jsonlint -i % 2>&1 && echo ''json OK: %'')"'
+ autocmd FileType haskell autocmd! BufWritePost <buffer> silent exe '!' . expand(g:notify) . ' ' . '"$(hlint % 2>&1 && brittany --write-mode inplace % 2>&1)"'
autocmd FileType c autocmd! BufWritePost <buffer> silent exe '!' . expand(g:notify) . ' ' . '"$(clang-format -i % 2>&1 && echo ''clang-format OK: %'')"'
autocmd FileType go autocmd! BufWritePost <buffer> silent exe '!' . expand(g:notify) . ' ' . '"$(gofmt -w -s -e % 2>&1 && go vet % 2>&1 && echo ''gofmt OK: %'')"'
autocmd FileType awk autocmd! BufWritePost <buffer> silent exe '!' . expand(g:notify) . ' ' . '"$(awk -g -f % 2>&1 && awk -o- -f % | sponge % && echo ''awk OK: %'')"'