From 9c3aa9d5d92b3dcaf754ec0c1d60cdb4554288e1 Mon Sep 17 00:00:00 2001 From: tdro Date: Fri, 11 Nov 2022 07:07:22 -0500 Subject: .vim/vimrc: pg_format uppercase types --- .vim/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.vim') 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 exe 'Notify(''file="' . expand('%') . '" && named-checkzone "$(head --lines=1 "$file" | cut --delimiter=" " --fields=2 | perl -ple "chop")" $file'')' | :e autocmd FileType yaml autocmd! BufWritePost 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 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 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 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 % -- cgit v1.2.3