aboutsummaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2022-11-11 07:07:22 -0500
committertdro <tdro@users.noreply.github.com>2022-11-11 07:07:22 -0500
commit9c3aa9d5d92b3dcaf754ec0c1d60cdb4554288e1 (patch)
treef279e90afe6c73a9891a657bb43b1f45f7f85627 /.vim
parentb8bb8768c9d9d33ca4e846d4339c22cdf51677a2 (diff)
downloaddotfiles-9c3aa9d5d92b3dcaf754ec0c1d60cdb4554288e1.tar.gz
dotfiles-9c3aa9d5d92b3dcaf754ec0c1d60cdb4554288e1.tar.bz2
dotfiles-9c3aa9d5d92b3dcaf754ec0c1d60cdb4554288e1.zip
.vim/vimrc: pg_format uppercase types
Diffstat (limited to '.vim')
-rw-r--r--.vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.vim/vimrc b/.vim/vimrc
index 0d50f54..2a6b2ff 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -308,7 +308,7 @@ augroup AutoCommands
autocmd FileType bindzone autocmd! BufWritePost <buffer> exe 'Notify(''file="' . expand('%') . '" && named-checkzone "$(head --lines=1 "$file" | cut --delimiter=" " --fields=2 | perl -ple "chop")" $file'')' | :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 --config tsconfig.json --allow-all --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
+ autocmd FileType sql autocmd! BufWritePost <buffer> exe 'Notify(''sqlint ' . expand('%') . ' 2>&1 && pg_format --type-case 2 --inplace ' . expand('%') . ' 2>&1 && sqlfluff lint --exclude-rules L003,L016 --dialect postgres ' . expand('%') . ' 2>&1 && printf "SQL OK: ' . expand('%') . '"'')' | :e
" Linting extension post write commands.
autocmd BufWritePost *.txt,*.md :only | :term ++rows=10 vale %