From b8bb8768c9d9d33ca4e846d4339c22cdf51677a2 Mon Sep 17 00:00:00 2001 From: tdro Date: Fri, 11 Nov 2022 07:04:55 -0500 Subject: .vim/vimrc: Run phpstan check --- .vim/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.vim') diff --git a/.vim/vimrc b/.vim/vimrc index 761bcdc..0d50f54 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -287,7 +287,7 @@ augroup AutoCommands autocmd BufWritePost plugins.vim source % | Notify('printf "Plugins configuration sourced."') " Linting file type post write commands. - autocmd FileType php autocmd! BufWritePost exe 'Notify(''phpcbf ' . expand('%') . ' 2>&1'')' | :e + autocmd FileType php autocmd! BufWritePost exe 'Notify(''phpcbf ' . expand('%') . ' 2>&1 && phpstan --no-progress --no-ansi --no-interaction analyze --level max ' . expand('%') . ' 2>&1'')' | :e autocmd FileType css autocmd! BufWritePost exe 'Notify(''prettier --write --parser css ' . expand('%') . ' 2>&1'')' | :e autocmd FileType html autocmd! BufWritePost exe 'Notify(''prettier --write --parser html ' . expand('%') . ' 2>&1'')' | :e autocmd FileType python autocmd! BufWritePost exe 'Notify(''black ' . expand('%') . ' 2>&1 && pylint ' . expand('%') . ' 2>&1'')' | :e -- cgit v1.2.3