[vim] Add YouCompleteMe

This commit is contained in:
lhark 2019-05-12 01:59:02 -04:00
parent 96adea3616
commit 7e9882fbb2

14
vimrc
View file

@ -18,6 +18,20 @@ if has("unix") || has("mac")
Plugin 'gmarik/Vundle.vim' Plugin 'gmarik/Vundle.vim'
map <F3> :VundleUpdate<CR> map <F3> :VundleUpdate<CR>
Plugin 'dag/vim-fish' 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' Plugin 'w0rp/ale'
let g:ale_linters = { let g:ale_linters = {
\ 'cpp': ['g++'], \ 'cpp': ['g++'],