From 20465e9747b2e9cb9a168d6682ea5acabfef0cd7 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Wed, 16 Aug 2017 14:40:13 -0400 Subject: [PATCH] Use PHP PSR2 by default for vim linting --- home/.config/nvim/init.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim index 9130084..e761db7 100644 --- a/home/.config/nvim/init.vim +++ b/home/.config/nvim/init.vim @@ -90,6 +90,9 @@ set mouse= " Disable mouse if getcwd() =~ '/repos/cuda' " codesniff files let g:ale_php_phpcs_standard=''.$HOME.'/repos/cuda/Cuda-PHP-Code-Standards/PHP_CodeSniffer/Barracuda' +else + let g:ale_php_phpcs_standard='PSR2' + au FileType php setl sw=4 sts=4 et endif " Enable syntax-highlighting for Go