[vim] Add YouCompleteMe
This commit is contained in:
parent
96adea3616
commit
7e9882fbb2
1 changed files with 14 additions and 0 deletions
14
vimrc
14
vimrc
|
@ -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++'],
|
||||||
|
|
Loading…
Reference in a new issue