diff options
author | tdro <tdro@users.noreply.github.com> | 2021-08-09 17:53:02 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2021-08-09 17:53:02 -0400 |
commit | bbce218a4c8ab7de39781de0d4a9caf0c49fb336 (patch) | |
tree | 0d5148d87a82689e449671a80f435972ea0f68d7 /.vimrc | |
parent | ee33b55bce0876d49ef2c0e8efeb3b9d60f8bab1 (diff) | |
download | dotfiles-bbce218a4c8ab7de39781de0d4a9caf0c49fb336.tar.gz dotfiles-bbce218a4c8ab7de39781de0d4a9caf0c49fb336.tar.bz2 dotfiles-bbce218a4c8ab7de39781de0d4a9caf0c49fb336.zip |
.vimrc: Remove raw JavaScript check function to bottom
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -106,11 +106,6 @@ function! PHPFix() :exe 'Notify(''phpcbf ' . expand('%') . ' 2>&1'')' | :e endfunction -" ESLint Fix -function! ESLintFix() - :exe 'Notify(''eslint -c $HOME/.config/eslintrc.yml --fix ' . expand('%') . ' 2>&1'')' | :e -endfunction - " Ansible Check function! AnsibleCheck() :exe 'Notify(''ansible-playbook --syntax-check ' . expand('%') . ' 2>&1'')' | :e @@ -316,7 +311,6 @@ augroup AutoCommands " Linting extension post write commands. autocmd BufWritePost *.php :call PHPFix() - autocmd BufWritePost *.js :call ESLintFix() autocmd BufWritePost *.txt,*.md :only | :term ++rows=10 vale % autocmd BufWritePost *.lit exe 'Notify(''lit ' . expand('%') . ' 2>&1 && printf "Literate OK: ' . expand('%') . '"'')' @@ -324,6 +318,7 @@ augroup AutoCommands 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 ruby autocmd! BufWritePost <buffer> exe 'Notify(''rufo ' . expand('%') . ' 2>&1 && rubocop ' . expand('%') . ' 2>&1'')' | :e + autocmd FileType javascript autocmd! BufWritePost <buffer> exe 'Notify(''eslint -c $HOME/.config/eslintrc.yml --fix ' . 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 elixir autocmd! BufWritePost <buffer> exe 'Notify(''mix format ' . expand('%') . ' 2>&1 && printf "Elixir Format OK: ' . expand('%') . '"'')' | :e |