aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2021-10-20 01:54:34 -0400
committertdro <tdro@users.noreply.github.com>2021-10-20 01:54:34 -0400
commitcc3cb356ab2fa59fdf39696e2cebefccaf1a2ff3 (patch)
tree8afce0cbe5ea0520577a4e9375eda4197695bbaf /.vimrc
parent86e69f00c9bcb802cccc20c8dccea2266a4c89ac (diff)
downloaddotfiles-cc3cb356ab2fa59fdf39696e2cebefccaf1a2ff3.tar.gz
dotfiles-cc3cb356ab2fa59fdf39696e2cebefccaf1a2ff3.tar.bz2
dotfiles-cc3cb356ab2fa59fdf39696e2cebefccaf1a2ff3.zip
.vimrc: Bring back black and pylint for python
Install flake8 for one offs. Use python 3.9 in shell.
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 019d06f..2bc0552 100644
--- a/.vimrc
+++ b/.vimrc
@@ -313,6 +313,7 @@ augroup AutoCommands
autocmd FileType php autocmd! BufWritePost <buffer> exe 'Notify(''phpcbf ' . expand('%') . ' 2>&1'')' | :e
autocmd FileType css autocmd! BufWritePost <buffer> exe 'Notify(''prettier --write --parser css ' . expand('%') . ' 2>&1'')' | :e
autocmd FileType html autocmd! BufWritePost <buffer> exe 'Notify(''prettier --write --parser html ' . expand('%') . ' 2>&1'')' | :e
+ autocmd FileType python autocmd! BufWritePost <buffer> exe 'Notify(''black ' . expand('%') . ' 2>&1 && pylint ' . 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