1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:20:03 +08:00

Add too completion plugins

This commit is contained in:
wsdjeg 2017-11-23 08:33:52 +08:00
parent ec0193f480
commit b934a4b7b9
2 changed files with 12 additions and 0 deletions

View File

@ -580,6 +580,8 @@ function! SpaceVim#end() abort
let g:spacevim_autocomplete_method = 'deoplete'
elseif has('lua')
let g:spacevim_autocomplete_method = 'neocomplete'
elseif has('timers')
let g:spacevim_autocomplete_method = 'asyncomplete'
else
let g:spacevim_autocomplete_method = 'neocomplcache'
endif

View File

@ -62,6 +62,16 @@ function! SpaceVim#layers#autocomplete#plugins() abort
call add(plugins, ['SpaceVim/nvim-yarp', {'merged': 0}])
call add(plugins, ['SpaceVim/vim-hug-neovim-rpc', {'merged': 0}])
endif
elseif g:spacevim_autocomplete_method == 'asyncomplete'
call add(plugins, ['prabirshrestha/asyncomplete.vim', {
\ 'loadconf' : 1,
\ 'merged' : 0,
\ }])
elseif g:spacevim_autocomplete_method == 'completor'
call add(plugins, ['maralla/completor.vim', {
\ 'loadconf' : 1,
\ 'merged' : 0,
\ }])
endif
if has('patch-7.4.774')
call add(plugins, ['Shougo/echodoc.vim', {