.vim/after/ftplugin/sql.vim

Wed, 03 Aug 2022 00:11:19 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 03 Aug 2022 00:11:19 -0500
changeset 995
ef237971026b
parent 913
72d72bafaf0f
permissions
-rw-r--r--

fix arg passthrough

" mjibson/sqlfmt - only does cockroachdb dialect
" this kinda sucks as far as placeholders and can't pass through odd syntax

" let &l:equalprg = "sqlfmt --use-spaces --tab-width " . &shiftwidth
" augroup SQLFMT_ERR
"   au! * <buffer>
"   autocmd ShellFilterPost <buffer> if v:shell_error | undo | endif
" augroup END

" cpanm https://github.com/darold/pgFormatter.git
let &l:equalprg = "pg_format -"
let &l:omnifunc = "syntaxcomplete#Complete"

mercurial