.config/nvim/after/ftplugin/sql.vim

Wed, 25 Sep 2024 15:03:13 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 25 Sep 2024 15:03:13 -0500
changeset 1179
b0a0ba3240b5
parent 1163
40367220022e
permissions
-rw-r--r--

No LSP autostart when read-only

I think nvim actually threw out 'view' argc detection, I just use -R and alias
view to it.

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

" let &l:formatprg = "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:formatprg = "pg_format -"
let &l:omnifunc = "syntaxcomplete#Complete"

mercurial