mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:30:07 +08:00
Add too completion plugins
This commit is contained in:
parent
ec0193f480
commit
b934a4b7b9
@ -580,6 +580,8 @@ function! SpaceVim#end() abort
|
|||||||
let g:spacevim_autocomplete_method = 'deoplete'
|
let g:spacevim_autocomplete_method = 'deoplete'
|
||||||
elseif has('lua')
|
elseif has('lua')
|
||||||
let g:spacevim_autocomplete_method = 'neocomplete'
|
let g:spacevim_autocomplete_method = 'neocomplete'
|
||||||
|
elseif has('timers')
|
||||||
|
let g:spacevim_autocomplete_method = 'asyncomplete'
|
||||||
else
|
else
|
||||||
let g:spacevim_autocomplete_method = 'neocomplcache'
|
let g:spacevim_autocomplete_method = 'neocomplcache'
|
||||||
endif
|
endif
|
||||||
|
@ -62,6 +62,16 @@ function! SpaceVim#layers#autocomplete#plugins() abort
|
|||||||
call add(plugins, ['SpaceVim/nvim-yarp', {'merged': 0}])
|
call add(plugins, ['SpaceVim/nvim-yarp', {'merged': 0}])
|
||||||
call add(plugins, ['SpaceVim/vim-hug-neovim-rpc', {'merged': 0}])
|
call add(plugins, ['SpaceVim/vim-hug-neovim-rpc', {'merged': 0}])
|
||||||
endif
|
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
|
endif
|
||||||
if has('patch-7.4.774')
|
if has('patch-7.4.774')
|
||||||
call add(plugins, ['Shougo/echodoc.vim', {
|
call add(plugins, ['Shougo/echodoc.vim', {
|
||||||
|
Loading…
Reference in New Issue
Block a user