Use PHP PSR2 by default for vim linting
This commit is contained in:
parent
5def1345ff
commit
20465e9747
1 changed files with 3 additions and 0 deletions
|
@ -90,6 +90,9 @@ set mouse= " Disable mouse
|
||||||
if getcwd() =~ '/repos/cuda'
|
if getcwd() =~ '/repos/cuda'
|
||||||
" codesniff files
|
" codesniff files
|
||||||
let g:ale_php_phpcs_standard=''.$HOME.'/repos/cuda/Cuda-PHP-Code-Standards/PHP_CodeSniffer/Barracuda'
|
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
|
endif
|
||||||
|
|
||||||
" Enable syntax-highlighting for Go
|
" Enable syntax-highlighting for Go
|
||||||
|
|
Loading…
Reference in a new issue