.config/nvim/after/ftplugin/sql.vim

Wed, 27 Dec 2023 01:38:27 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 27 Dec 2023 01:38:27 -0600
changeset 1136
ace6b39b2ba7
parent 1125
58490a30d6fb
child 1163
40367220022e
permissions
-rw-r--r--

remove setup-gem-faves / gemfile

1029
9265f8508e4c Copy other ft and plugin settings
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 " mjibson/sqlfmt - only does cockroachdb dialect
9265f8508e4c Copy other ft and plugin settings
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 " this kinda sucks as far as placeholders and can't pass through odd syntax
9265f8508e4c Copy other ft and plugin settings
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
1125
58490a30d6fb Stop misusing equalprg
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
4 " let &l:formatprg = "sqlfmt --use-spaces --tab-width " . &shiftwidth
1029
9265f8508e4c Copy other ft and plugin settings
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5 " augroup SQLFMT_ERR
9265f8508e4c Copy other ft and plugin settings
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 " au! * <buffer>
9265f8508e4c Copy other ft and plugin settings
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 " autocmd ShellFilterPost <buffer> if v:shell_error | undo | endif
9265f8508e4c Copy other ft and plugin settings
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 " augroup END
9265f8508e4c Copy other ft and plugin settings
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9
9265f8508e4c Copy other ft and plugin settings
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 " cpanm https://github.com/darold/pgFormatter.git
1125
58490a30d6fb Stop misusing equalprg
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
11 let &l:formatprg = "pg_format -"
1029
9265f8508e4c Copy other ft and plugin settings
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12 let &l:omnifunc = "syntaxcomplete#Complete"

mercurial