diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-11-29 16:12:03 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-11-29 16:12:03 +1300 |
commit | 2e8e5397d20f8c9cfe8b31c93cf60ec8511206b4 (patch) | |
tree | 7535b49cb4ff4e7895ab9bae20a112c3e85251b3 /vim | |
parent | Prevent diagnostics from php-cs-fixer (diff) | |
download | dotfiles-2e8e5397d20f8c9cfe8b31c93cf60ec8511206b4.tar.gz dotfiles-2e8e5397d20f8c9cfe8b31c93cf60ec8511206b4.zip |
Define phpcsff(1df) as Vim 'equalprg' for PHP
Diffstat (limited to 'vim')
-rw-r--r-- | vim/after/ftplugin/php.vim | 3 |
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:*/,://,:# |