.vim/after/ftplugin/sql.vim

Fri, 20 Aug 2021 02:25:51 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 20 Aug 2021 02:25:51 -0400
changeset 939
b769704bb258
parent 913
72d72bafaf0f
permissions
-rw-r--r--

auto-prune junk directories

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