diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-11-29 16:12:17 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-11-29 16:12:17 +1300 |
commit | 2dfee62cd9cd45109c15329fcb12facee15ceeb8 (patch) | |
tree | 16184242dfde54fa72d70e9d143d2f9a4c282e1e | |
parent | Merge branch 'release/v7.22.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-2dfee62cd9cd45109c15329fcb12facee15ceeb8.tar.gz dotfiles-2dfee62cd9cd45109c15329fcb12facee15ceeb8.zip |
Merge branch 'release/v7.23.0'v7.23.0
* release/v7.23.0:
Define phpcsff(1df) as Vim 'equalprg' for PHP
Prevent diagnostics from php-cs-fixer
-rw-r--r-- | VERSION | 4 | ||||
-rwxr-xr-x | bin/phpcsff.mi5 | 2 | ||||
-rw-r--r-- | vim/after/ftplugin/php.vim | 3 |
3 files changed, 5 insertions, 4 deletions
@@ -1,2 +1,2 @@ -tejr dotfiles v7.22.0 -Fri, 29 Nov 2019 03:07:47 +0000 +tejr dotfiles v7.23.0 +Fri, 29 Nov 2019 03:12:16 +0000 diff --git a/bin/phpcsff.mi5 b/bin/phpcsff.mi5 index ea05eaaa..5e33f047 100755 --- a/bin/phpcsff.mi5 +++ b/bin/phpcsff.mi5 @@ -11,5 +11,5 @@ if ! command -v php-cs-fixer >/dev/null 2>&1 ; then exit 1 fi cat -- "${@:--}" > "$td"/src.php -php-cs-fixer fix -- "$td"/src.php +php-cs-fixer fix --quiet -- "$td"/src.php cat -- "$td"/src.php 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:*/,://,:# |