From 7e9882fbb2ce4d1fb9915dc7cddaa2f0f750edd9 Mon Sep 17 00:00:00 2001 From: lhark Date: Sun, 12 May 2019 01:59:02 -0400 Subject: [PATCH] [vim] Add YouCompleteMe --- vimrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vimrc b/vimrc index 4e2beb3..6095dbc 100644 --- a/vimrc +++ b/vimrc @@ -18,6 +18,20 @@ if has("unix") || has("mac") Plugin 'gmarik/Vundle.vim' map :VundleUpdate Plugin 'dag/vim-fish' + if isdirectory(expand("$HOME/.vim/bundle/YouCompleteMe")) + "[Workaround for YCM non-portability]" + Plugin 'Valloric/YouCompleteMe' + let g:ycm_global_ycm_extra_conf = expand("$HOME/.vim/ycm_global_conf.py") + let g:ycm_extra_conf_vim_data =[ "&filetype" ] + "[We're using ale for linting]" + let g:ycm_show_diagnostics_ui = 0 + let g:ycm_collect_identifiers_from_tags_files=1 + let g:ycm_seed_identifiers_with_syntax=1 + let g:ycm_show_diagnostics_ui = 0 + let g:ycm_use_ultisnips_completer = 0 + else + Plugin 'AutoComplPop' + endif Plugin 'w0rp/ale' let g:ale_linters = { \ 'cpp': ['g++'],