summaryrefslogtreecommitdiff
path: root/ale_linters/c
diff options
context:
space:
mode:
authorYe Jingchen <ye.jingchen@gmail.com>2018-09-26 22:50:43 +0800
committerYe Jingchen <ye.jingchen@gmail.com>2018-09-26 22:50:43 +0800
commit626e47f5c9c3c86fef56020bedae996e8b026a9f (patch)
tree6a4de28361f6bf3e6e2f5a76fee881cafef2d7e0 /ale_linters/c
parent56658fd3ada284a373afffb49b0ec2d66ad00445 (diff)
downloadale-626e47f5c9c3c86fef56020bedae996e8b026a9f.zip
Add ccls tests
Diffstat (limited to 'ale_linters/c')
-rw-r--r--ale_linters/c/ccls.vim4
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