.vim/after/ftplugin/sql.vim

Sat, 30 Oct 2021 14:38:03 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 30 Oct 2021 14:38:03 -0400
changeset 954
93e7838ac6a5
parent 913
72d72bafaf0f
permissions
-rw-r--r--

switch to noselect

911
abfa73c8cfda use pg_format
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 " mjibson/sqlfmt - only does cockroachdb dialect
abfa73c8cfda use pg_format
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 " this kinda sucks as far as placeholders and can't pass through odd syntax
abfa73c8cfda use pg_format
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
abfa73c8cfda use pg_format
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 " let &l:equalprg = "sqlfmt --use-spaces --tab-width " . &shiftwidth
abfa73c8cfda use pg_format
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5 " augroup SQLFMT_ERR
abfa73c8cfda use pg_format
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 " au! * <buffer>
abfa73c8cfda use pg_format
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 " autocmd ShellFilterPost <buffer> if v:shell_error | undo | endif
abfa73c8cfda use pg_format
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 " augroup END
abfa73c8cfda use pg_format
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9
abfa73c8cfda use pg_format
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 " cpanm https://github.com/darold/pgFormatter.git
abfa73c8cfda use pg_format
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 let &l:equalprg = "pg_format -"
913
72d72bafaf0f try harder to block the sqlcomplete omni
Meredith Howard <mhoward@roomag.org>
parents: 911
diff changeset
12 let &l:omnifunc = "syntaxcomplete#Complete"

mercurial