Compare commits
1 Commits
61b877286b
...
3ca618e7a7
Author | SHA1 | Date | |
---|---|---|---|
3ca618e7a7 |
@ -37,8 +37,10 @@ function! build#dir(...) abort
|
|||||||
if exists('l:dir')
|
if exists('l:dir')
|
||||||
" Set build directory and restart YouCompleteMe.
|
" Set build directory and restart YouCompleteMe.
|
||||||
let $BUILD_DIR = getcwd().'/'.substitute(l:dir, '\/$', '', '')
|
let $BUILD_DIR = getcwd().'/'.substitute(l:dir, '\/$', '', '')
|
||||||
let g:ycm_clangd_args = ['--compile-commands-dir='.$BUILD_DIR]
|
" TODO: Check .vim/coc-settings.json exists, create it if not
|
||||||
YcmRestartServer
|
let l:coc_settings = json_decode(join(readfile('.vim/coc-settings.json'), ''))
|
||||||
|
let l:coc_settings['clangd.compilationDatabasePath'] = $BUILD_DIR
|
||||||
|
CocRestart
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user