aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-11-29 16:12:03 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-11-29 16:12:03 +1300
commit2e8e5397d20f8c9cfe8b31c93cf60ec8511206b4 (patch)
tree7535b49cb4ff4e7895ab9bae20a112c3e85251b3
parentPrevent diagnostics from php-cs-fixer (diff)
downloaddotfiles-2e8e5397d20f8c9cfe8b31c93cf60ec8511206b4.tar.gz
dotfiles-2e8e5397d20f8c9cfe8b31c93cf60ec8511206b4.zip
Define phpcsff(1df) as Vim 'equalprg' for PHP
-rw-r--r--vim/after/ftplugin/php.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/after/ftplugin/php.vim b/vim/after/ftplugin/php.vim
index c7f77ece..0ce099a0 100644
--- a/vim/after/ftplugin/php.vim
+++ b/vim/after/ftplugin/php.vim
@@ -1,7 +1,8 @@
" Use PHP itself for syntax checking
compiler php
+setlocal equalprg=phpcsff
let b:undo_ftplugin .= '|unlet b:current_compiler'
- \ . '|setlocal errorformat< makeprg<'
+ \ . '|setlocal equalprg< errorformat< makeprg<'
" Set comment formats
setlocal comments=s1:/*,m:*,ex:*/,://,:#