.vim/after/ftplugin/sql.vim

Tue, 07 Feb 2023 02:43:10 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 07 Feb 2023 02:43:10 -0500
changeset 1012
e0cd428ffa90
parent 913
72d72bafaf0f
permissions
-rw-r--r--

Disable mucomplete auto

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