summaryrefslogtreecommitdiff
path: root/ale_linters/cpp/ccls.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/cpp/ccls.vim')
-rw-r--r--ale_linters/cpp/ccls.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/ale_linters/cpp/ccls.vim b/ale_linters/cpp/ccls.vim
index e63849c3..f1604f30 100644
--- a/ale_linters/cpp/ccls.vim
+++ b/ale_linters/cpp/ccls.vim
@@ -9,7 +9,9 @@ function! ale_linters#cpp#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