diff options
author | Ye Jingchen <ye.jingchen@gmail.com> | 2018-09-26 22:50:43 +0800 |
---|---|---|
committer | Ye Jingchen <ye.jingchen@gmail.com> | 2018-09-26 22:50:43 +0800 |
commit | 626e47f5c9c3c86fef56020bedae996e8b026a9f (patch) | |
tree | 6a4de28361f6bf3e6e2f5a76fee881cafef2d7e0 /ale_linters/cpp | |
parent | 56658fd3ada284a373afffb49b0ec2d66ad00445 (diff) | |
download | ale-626e47f5c9c3c86fef56020bedae996e8b026a9f.zip |
Add ccls tests
Diffstat (limited to 'ale_linters/cpp')
-rw-r--r-- | ale_linters/cpp/ccls.vim | 4 |
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 |