From: Samir Benmendil Date: Sun, 1 Mar 2020 23:09:17 +0000 (+0000) Subject: vim: use system clangd and local compile db X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/b481aa7998437d006b2c3e663f7086f923f7e40c?ds=inline vim: use system clangd and local compile db --- diff --git a/vim/vimrc b/vim/vimrc index 0bbb3c1..c501572 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -735,7 +735,9 @@ endfunction " youcompleteme {{{2 let g:ycm_extra_conf_globlist = ['~/src/*','/mnt/data/src/*'] -let g:ycm_global_ycm_extra_conf = expand('$XDG_CONFIG_HOME/vim/ycm_extra_conf.py') +" ycm-clangd requires you to symlink the compile_db to the root of the project +" let g:ycm_global_ycm_extra_conf = expand('$XDG_CONFIG_HOME/vim/ycm_extra_conf.py') +let g:ycm_clangd_binary_path = 'clangd' " use clangd in path let g:ycm_extra_conf_vim_data = ['getcwd()'] let g:ycm_add_preview_to_completeopt = 1 let g:ycm_complete_in_comments = 1