Compare commits
1 Commits
3ca618e7a7
...
61b877286b
Author | SHA1 | Date | |
---|---|---|---|
61b877286b |
@ -40,6 +40,7 @@ function! build#dir(...) abort
|
|||||||
" TODO: Check .vim/coc-settings.json exists, create it if not
|
" TODO: Check .vim/coc-settings.json exists, create it if not
|
||||||
let l:coc_settings = json_decode(join(readfile('.vim/coc-settings.json'), ''))
|
let l:coc_settings = json_decode(join(readfile('.vim/coc-settings.json'), ''))
|
||||||
let l:coc_settings['clangd.compilationDatabasePath'] = $BUILD_DIR
|
let l:coc_settings['clangd.compilationDatabasePath'] = $BUILD_DIR
|
||||||
|
call writefile([json_encode(l:coc_settings)], '.vim/coc-settings.json')
|
||||||
CocRestart
|
CocRestart
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user