aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2021-05-24 02:01:43 -0400
committertdro <tdro@users.noreply.github.com>2021-05-24 02:01:43 -0400
commit977aba7d462025b6fb3a06c1e40d17cac81062f7 (patch)
tree25b60cad4d8a87c68ecf893e6ef00ead4e136fe9 /.vimrc
parent358cb9f7e872ae3aea22ea5f0ba3531c524c2cad (diff)
downloaddotfiles-977aba7d462025b6fb3a06c1e40d17cac81062f7.tar.gz
dotfiles-977aba7d462025b6fb3a06c1e40d17cac81062f7.tar.bz2
dotfiles-977aba7d462025b6fb3a06c1e40d17cac81062f7.zip
.config/nixpkgs: Bring back ruby
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 7f9b2a7..920f127 100644
--- a/.vimrc
+++ b/.vimrc
@@ -304,6 +304,7 @@ augroup AutoCommands
" Linting file type post write commands.
autocmd FileType css autocmd! BufWritePost <buffer> exe 'Notify(''prettier --write --parser css ' . expand('%') . ' 2>&1'')' | :e
+ autocmd FileType ruby autocmd! BufWritePost <buffer> exe 'Notify(''rufo ' . expand('%') . ' 2>&1 && rubocop ' . expand('%') . ' 2>&1'')' | :e
autocmd FileType rust autocmd! BufWritePost <buffer> exe 'Notify(''rustfmt ' . expand('%') . ' 2>&1 && printf "rustfmt OK: ' . expand('%') . '"'')' | :e
autocmd FileType json autocmd! BufWritePost <buffer> exe 'Notify(''jsonlint -i ' . expand('%') . ' 2>&1 && printf "JSON OK: ' . expand('%') . '"'')' | :e
autocmd FileType haskell autocmd! BufWritePost <buffer> exe 'Notify(''hlint ' . expand('%') . ' 2>&1 && brittany --write-mode inplace ' . expand('%') . ' 2>&1'')' | :e