diff options
Diffstat (limited to 'ale_linters/c/ccls.vim')
-rw-r--r-- | ale_linters/c/ccls.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ale_linters/c/ccls.vim b/ale_linters/c/ccls.vim index 0aad0a3d..d0fa566e 100644 --- a/ale_linters/c/ccls.vim +++ b/ale_linters/c/ccls.vim @@ -9,7 +9,9 @@ function! ale_linters#c#ccls#GetProjectRoot(buffer) abort if empty(l:project_root) let l:project_root = ale#path#FindNearestFile(a:buffer, 'compile_commands.json') - elseif empty(l:project_root) + endif + + if empty(l:project_root) let l:project_root = ale#path#FindNearestFile(a:buffer, '.ccls') endif |