Merge pull request #1636 from zed0/master
#1635 - Use the project base rather than its parent for cquery
This commit is contained in:
commit
10a9177b6b
@ -7,7 +7,7 @@ call ale#Set('cpp_cquery_cache_directory', expand('~/.cache/cquery'))
|
|||||||
function! ale_linters#cpp#cquery#GetProjectRoot(buffer) abort
|
function! ale_linters#cpp#cquery#GetProjectRoot(buffer) abort
|
||||||
let l:project_root = ale#path#FindNearestFile(a:buffer, 'compile_commands.json')
|
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
|
endfunction
|
||||||
|
|
||||||
function! ale_linters#cpp#cquery#GetExecutable(buffer) abort
|
function! ale_linters#cpp#cquery#GetExecutable(buffer) abort
|
||||||
|
Loading…
Reference in New Issue
Block a user