# HG changeset patch # User Meredith Howard # Date 1623864160 18000 # Node ID abfa73c8cfda97fb7185d8dcc09119e412c5432f # Parent 272ba799a19ea5fe10d18d056be0b72b064e5d80 use pg_format diff --git a/.pg_format b/.pg_format new file mode 100644 --- /dev/null +++ b/.pg_format @@ -0,0 +1,3 @@ +function-case = 2 +redshift = 1 +wrap-comment = 1 diff --git a/.vim/ftplugin/sql.vim b/.vim/ftplugin/sql.vim new file mode 100644 --- /dev/null +++ b/.vim/ftplugin/sql.vim @@ -0,0 +1,12 @@ +" mjibson/sqlfmt - only does cockroachdb dialect +" this kinda sucks as far as placeholders and can't pass through odd syntax + +" let &l:equalprg = "sqlfmt --use-spaces --tab-width " . &shiftwidth +" augroup SQLFMT_ERR +" au! * +" autocmd ShellFilterPost if v:shell_error | undo | endif +" augroup END + +" cpanm https://github.com/darold/pgFormatter.git +let &l:equalprg = "pg_format -" +