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/c | |
parent | 56658fd3ada284a373afffb49b0ec2d66ad00445 (diff) | |
download | ale-626e47f5c9c3c86fef56020bedae996e8b026a9f.zip |
Add ccls tests
Diffstat (limited to 'ale_linters/c')
-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 |