diff options
author | w0rp <devw0rp@gmail.com> | 2017-07-30 14:42:00 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-07-30 14:42:00 +0100 |
commit | 84af543907e222dd6035a37f7a7b9a99b9fd11ad (patch) | |
tree | 58421a4063af944405a0e96cfb111c92244ba975 /ale_linters/php/langserver.vim | |
parent | 63b9d9e9df9811eec3470e38b234cd2d959169eb (diff) | |
download | ale-84af543907e222dd6035a37f7a7b9a99b9fd11ad.zip |
Fix some bugs so the PHP language server will show errors at least once
Diffstat (limited to 'ale_linters/php/langserver.vim')
-rw-r--r-- | ale_linters/php/langserver.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/php/langserver.vim b/ale_linters/php/langserver.vim index 8dad5ac7..29545542 100644 --- a/ale_linters/php/langserver.vim +++ b/ale_linters/php/langserver.vim @@ -25,7 +25,7 @@ endfunction function! ale_linters#php#langserver#GetProjectRoot(buffer) abort let l:git_path = ale#path#FindNearestDirectory(a:buffer, '.git') - return !empty(l:git_path) ? fnamemodify(l:git_path, ':h') : '' + return !empty(l:git_path) ? fnamemodify(l:git_path, ':h:h') : '' endfunction call ale#linter#Define('php', { |