diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 06c8be43c..0663f2b88 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -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 diff --git a/autoload/SpaceVim/layers/autocomplete.vim b/autoload/SpaceVim/layers/autocomplete.vim index 25ff80efb..382deae85 100644 --- a/autoload/SpaceVim/layers/autocomplete.vim +++ b/autoload/SpaceVim/layers/autocomplete.vim @@ -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', {