1
0
mirror of https://github.com/amix/vimrc synced 2025-07-12 14:15:00 +08:00
This commit is contained in:
geezus
2021-06-30 12:00:07 -05:00
parent 43c7efba8d
commit 3afe70fe5a
1529 changed files with 3053 additions and 3018 deletions

View File

@ -18,8 +18,8 @@ function! ale_linters#php#intelephense#GetProjectRoot(buffer) abort
return !empty(l:git_path) ? fnamemodify(l:git_path, ':h:h') : ''
endfunction
function! ale_linters#php#intelephense#GetInitializationOptions() abort
return ale#Get('php_intelephense_config')
function! ale_linters#php#intelephense#GetInitializationOptions(buffer) abort
return ale#Var(a:buffer, 'php_intelephense_config')
endfunction
call ale#linter#Define('php', {

0
sources_non_forked/ale/ale_linters/php/langserver.vim Normal file → Executable file
View File

8
sources_non_forked/ale/ale_linters/php/phan.vim Normal file → Executable file
View File

@ -39,7 +39,7 @@ function! ale_linters#php#phan#Handle(buffer, lines) abort
let l:pattern = '^Phan error: \(\w\+\): \(.\+\) in \(.\+\) on line \(\d\+\)$'
else
" /path/to/some-filename.php:18 ERRORTYPE message
let l:pattern = '^.*:\(\d\+\)\s\(\w\+\)\s\(.\+\)$'
let l:pattern = '^\(.*\):\(\d\+\)\s\(\w\+\)\s\(.\+\)$'
endif
let l:output = []
@ -49,13 +49,15 @@ function! ale_linters#php#phan#Handle(buffer, lines) abort
let l:dict = {
\ 'lnum': l:match[4] + 0,
\ 'text': l:match[2],
\ 'filename': l:match[3],
\ 'type': 'W',
\}
else
let l:dict = {
\ 'lnum': l:match[1] + 0,
\ 'text': l:match[3],
\ 'lnum': l:match[2] + 0,
\ 'text': l:match[4],
\ 'type': 'W',
\ 'filename': l:match[1],
\}
endif

0
sources_non_forked/ale/ale_linters/php/php.vim Normal file → Executable file
View File

0
sources_non_forked/ale/ale_linters/php/phpcs.vim Normal file → Executable file
View File

0
sources_non_forked/ale/ale_linters/php/phpmd.vim Normal file → Executable file
View File

0
sources_non_forked/ale/ale_linters/php/phpstan.vim Normal file → Executable file
View File

0
sources_non_forked/ale/ale_linters/php/psalm.vim Normal file → Executable file
View File

0
sources_non_forked/ale/ale_linters/php/tlint.vim Normal file → Executable file
View File