diff options
author | tdro <tdro@users.noreply.github.com> | 2021-10-20 01:54:34 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2021-10-20 01:54:34 -0400 |
commit | cc3cb356ab2fa59fdf39696e2cebefccaf1a2ff3 (patch) | |
tree | 8afce0cbe5ea0520577a4e9375eda4197695bbaf /.vimrc | |
parent | 86e69f00c9bcb802cccc20c8dccea2266a4c89ac (diff) | |
download | dotfiles-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-- | .vimrc | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |