diff options
author | Ben Falconer <ben@falconers.me.uk> | 2018-06-07 00:04:21 +0100 |
---|---|---|
committer | Ben Falconer <ben@falconers.me.uk> | 2018-06-07 00:12:38 +0100 |
commit | d1be72f43890adf78d66c283c51eb3eec626575c (patch) | |
tree | 441f50c0fc989e4a2e35be1464b82078308f778c /ale_linters | |
parent | 67753de531c77586dd35c6aad093f3a68263601b (diff) | |
download | ale-d1be72f43890adf78d66c283c51eb3eec626575c.zip |
#1635 - Use the project base rather than its parent for cquery
Diffstat (limited to 'ale_linters')
-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 |