Stop misusing equalprg

Thu, 10 Aug 2023 02:23:07 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 10 Aug 2023 02:23:07 -0500
changeset 1125
58490a30d6fb
parent 1124
cb981f8aba50
child 1126
fe77c5eed375

Stop misusing equalprg

.config/nvim/after/ftplugin/lua.vim file | annotate | diff | comparison | revisions
.config/nvim/after/ftplugin/mail.vim file | annotate | diff | comparison | revisions
.config/nvim/after/ftplugin/perl.vim file | annotate | diff | comparison | revisions
.config/nvim/after/ftplugin/sh.vim file | annotate | diff | comparison | revisions
.config/nvim/after/ftplugin/sql.vim file | annotate | diff | comparison | revisions
--- a/.config/nvim/after/ftplugin/lua.vim
+++ b/.config/nvim/after/ftplugin/lua.vim
@@ -1,5 +1,5 @@
 setl et sw=2
 
 if executable("stylua")
-  setl equalprg=stylua\ -s\ -
+  setl formatprg=stylua\ -s\ -
 endif
--- a/.config/nvim/after/ftplugin/mail.vim
+++ b/.config/nvim/after/ftplugin/mail.vim
@@ -3,7 +3,7 @@ setl formatoptions=jaw12tcql
 setl spell
 setl noundofile noswapfile nobackup
 
-setl equalprg=pandoc\ -f\ markdown\ -t\ markdown
+setl formatprg=pandoc\ -f\ markdown\ -t\ markdown
 
 " http://cedricduval.free.fr/download/mail.vim
 function! Mail_Erase_Sig()
--- a/.config/nvim/after/ftplugin/perl.vim
+++ b/.config/nvim/after/ftplugin/perl.vim
@@ -1,2 +1,2 @@
 compiler perl
-setl equalprg=perltidy\ -q
+setl formatprg=perltidy\ -q
--- a/.config/nvim/after/ftplugin/sh.vim
+++ b/.config/nvim/after/ftplugin/sh.vim
@@ -1,1 +1,1 @@
-let &l:equalprg = "shfmt -i " . &shiftwidth
+let &l:formatprg = "shfmt -i " . &shiftwidth
--- a/.config/nvim/after/ftplugin/sql.vim
+++ b/.config/nvim/after/ftplugin/sql.vim
@@ -1,12 +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
+" let &l:formatprg = "sqlfmt --use-spaces --tab-width " . &shiftwidth
 " augroup SQLFMT_ERR
 "   au! * <buffer>
 "   autocmd ShellFilterPost <buffer> if v:shell_error | undo | endif
 " augroup END
 
 " cpanm https://github.com/darold/pgFormatter.git
-let &l:equalprg = "pg_format -"
+let &l:formatprg = "pg_format -"
 let &l:omnifunc = "syntaxcomplete#Complete"

mercurial