diff options
author | Guangxiong Lin <[email protected]> | 2022-04-03 01:29:22 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-04-03 01:29:22 +0800 |
commit | 250788b0fdafc3bc64c7f1d0bbca41c93a23d39b (patch) | |
tree | db4c93a419ae9c3b2c8015205cdf36b1590be5ef /.vim/after | |
parent | 91b03d5bef89e9e22c551f306844c29676569e6e (diff) | |
download | dotfiles-250788b0fdafc3bc64c7f1d0bbca41c93a23d39b.tar.gz dotfiles-250788b0fdafc3bc64c7f1d0bbca41c93a23d39b.tar.bz2 dotfiles-250788b0fdafc3bc64c7f1d0bbca41c93a23d39b.zip |
Use external gopls and clangd in ycm (vim)
Diffstat (limited to '.vim/after')
-rw-r--r-- | .vim/after/plugin/minpac.vim | 8 | ||||
-rw-r--r-- | .vim/after/plugin/youcompleteme.vim | 3 |
2 files changed, 4 insertions, 7 deletions
diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim index 9dde72d..4cf5921 100644 --- a/.vim/after/plugin/minpac.vim +++ b/.vim/after/plugin/minpac.vim @@ -68,11 +68,5 @@ command! MinpacClean source $MYVIMRC | call InitMinpac() | call minpac#clean() command! MinpacStatus call InitMinpac() | call minpac#status() function! s:build_ycm(hooktype, name) - let ycm_install_options = ' --clangd-completer' - - if executable('go') - let ycm_install_options = ycm_install_options . ' --go-completer' - endif - - exec '!python3 ./install.py' . ycm_install_options + exec '!python3 ./install.py' endfunction diff --git a/.vim/after/plugin/youcompleteme.vim b/.vim/after/plugin/youcompleteme.vim index 1e1e6c4..80888ba 100644 --- a/.vim/after/plugin/youcompleteme.vim +++ b/.vim/after/plugin/youcompleteme.vim @@ -9,6 +9,9 @@ let g:ycm_show_diagnostics_ui = 0 let g:ycm_error_symbol = 'E>' let g:ycm_warning_symbol = 'W>' +let g:ycm_clangd_binary_path = 'clangd' +let g:ycm_gopls_binary_path = 'gopls' + let g:ycm_filetype_whilelist = { \ "c": 1, \ "cpp": 1, |