From 84af543907e222dd6035a37f7a7b9a99b9fd11ad Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 30 Jul 2017 14:42:00 +0100 Subject: Fix some bugs so the PHP language server will show errors at least once --- ale_linters/php/langserver.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ale_linters/php/langserver.vim') 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', { -- cgit v1.2.3