.vim/after/ftplugin/sql.vim

Fri, 10 Nov 2023 01:31:38 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 10 Nov 2023 01:31:38 -0600
changeset 1134
fe6ccd1afb11
parent 913
72d72bafaf0f
permissions
-rw-r--r--

Version-gate tmux popup (>= 3.2)

" 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