.vim/after/ftplugin/sql.vim

Mon, 13 Dec 2021 13:02:46 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 13 Dec 2021 13:02:46 -0600
changeset 961
68baaab84a0c
parent 913
72d72bafaf0f
permissions
-rw-r--r--

Make git-histedit an alias. can use --keep-base after 2.24

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