.vim/after/ftplugin/sql.vim

Wed, 28 Aug 2024 04:44:05 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 28 Aug 2024 04:44:05 -0500
changeset 1178
8993dc4128de
parent 913
72d72bafaf0f
permissions
-rw-r--r--

add assign types gopls hint too

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