diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-06-07 07:23:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-07 07:23:44 +0100 |
commit | 10a9177b6b211173660e09ffdbc476532640f398 (patch) | |
tree | 441f50c0fc989e4a2e35be1464b82078308f778c | |
parent | 67753de531c77586dd35c6aad093f3a68263601b (diff) | |
parent | d1be72f43890adf78d66c283c51eb3eec626575c (diff) | |
download | ale-10a9177b6b211173660e09ffdbc476532640f398.zip |
Merge pull request #1636 from zed0/master
#1635 - Use the project base rather than its parent for cquery
-rw-r--r-- | ale_linters/cpp/cquery.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/cpp/cquery.vim b/ale_linters/cpp/cquery.vim index dbaed520..2fd77d46 100644 --- a/ale_linters/cpp/cquery.vim +++ b/ale_linters/cpp/cquery.vim @@ -7,7 +7,7 @@ call ale#Set('cpp_cquery_cache_directory', expand('~/.cache/cquery')) function! ale_linters#cpp#cquery#GetProjectRoot(buffer) abort let l:project_root = ale#path#FindNearestFile(a:buffer, 'compile_commands.json') - return !empty(l:project_root) ? fnamemodify(l:project_root, ':h:h') : '' + return !empty(l:project_root) ? fnamemodify(l:project_root, ':h') : '' endfunction function! ale_linters#cpp#cquery#GetExecutable(buffer) abort |