From b481aa7998437d006b2c3e663f7086f923f7e40c Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 1 Mar 2020 23:09:17 +0000 Subject: [PATCH] vim: use system clangd and local compile db --- vim/vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.48.1