diff options
author | tdro <tdro@users.noreply.github.com> | 2021-08-09 20:01:19 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2021-08-09 20:01:19 -0400 |
commit | 8db795f38d18d81081ba62f7a1184ce6523c4662 (patch) | |
tree | 53345218488980f5afdc3a38b76d64934f68126e /.vimrc | |
parent | a792603dec553feb650ccfeeb25449d0743f40f1 (diff) | |
download | dotfiles-8db795f38d18d81081ba62f7a1184ce6523c4662.tar.gz dotfiles-8db795f38d18d81081ba62f7a1184ce6523c4662.tar.bz2 dotfiles-8db795f38d18d81081ba62f7a1184ce6523c4662.zip |
.vimrc: Add deno lint and run to quick lint
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -309,7 +309,6 @@ augroup AutoCommands " Linting file type post write commands. autocmd FileType php autocmd! BufWritePost <buffer> exe 'Notify(''phpcbf ' . expand('%') . ' 2>&1'')' | :e - autocmd FileType typescript autocmd! BufWritePost <buffer> exe 'Notify(''deno fmt ' . 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 ruby autocmd! BufWritePost <buffer> exe 'Notify(''rufo ' . expand('%') . ' 2>&1 && rubocop ' . expand('%') . ' 2>&1'')' | :e @@ -324,6 +323,7 @@ augroup AutoCommands autocmd FileType nix autocmd! BufWritePost <buffer> exe 'Notify(''nix-linter ' . expand('%') . ' 2>&1 && printf "Nix Lint OK: ' . expand('%') . '"' . ' && nixfmt ' . expand('%') . ' 2>&1' . ''')' | :e autocmd FileType awk autocmd! BufWritePost <buffer> exe 'Notify(''awk -g -f ' . expand('%') . ' 2>&1 && awk -o- -f ' . expand('%') . ' | sponge ' . expand('%') . ' && printf "AWK OK: ' . expand('%') . '"'')' | :e autocmd FileType yaml autocmd! BufWritePost <buffer> exe 'Notify(''yaml round-trip --indent 2 --save ' . expand('%') . ' 2>&1 && yamllint -s ' . expand('%') . ' 2>&1 && printf "YAML OK: ' . expand('%') . '"'')' | :e + autocmd FileType typescript autocmd! BufWritePost <buffer> exe 'Notify(''deno fmt ' . expand('%') . ' 2>&1 && NO_COLOR=true deno lint ' . expand('%') . ' 2>&1'')' | :e | :only | :term ++rows=10 deno run --location https://example.com/ % autocmd FileType sql autocmd! BufWritePost <buffer> exe 'Notify(''sqlint ' . expand('%') . ' 2>&1 && pg_format -i ' . expand('%') . ' 2>&1 && sqlfluff lint --exclude-rules L003,L016 --dialect postgres ' . expand('%') . ' 2>&1 && printf "SQL OK: ' . expand('%') . '"'')' | :e " File type function under cursor lookups. |