This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin() | |
"" ... | |
if executable('clang') | |
Plug 'Valloric/YouCompleteMe', { 'do': './install.sh' } | |
let g:completionEngine = 'ycm' | |
else | |
if has('lua') && (version >= 704 || version == 703 && has('patch885')) | |
Plug 'Shougo/neocomplete.vim' | |
let g:completionEngine = 'neocomplete' | |
else | |
Plug 'Shougo/neocomplcache.vim' | |
let g:completionEngine = 'neocomplcache' | |
endif | |
if g:completionEngine == 'ycm' | |
"" add your YCM settings here | |
elseif exists('g:completionEngine') | |
let g:{g:completionEngine}#enable_at_startup = 1 | |
"" {brace syntax} like above lets you maintain the same settings for neocomplete and neocomplcache | |
endif | |
"" ... | |
call plug#end() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment