From 62d58977bfb92aed7648f90a594e24335178f9b1 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 12 Nov 2017 22:28:56 +0800 Subject: [PATCH] Enable deoplete in vim8 --- autoload/SpaceVim.vim | 2 +- autoload/SpaceVim/layers/autocomplete.vim | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 74645221b..c928f14a7 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -544,7 +544,7 @@ function! SpaceVim#end() abort call add(g:spacevim_plugin_groups, 'colorscheme') endif - if has('nvim') + if has('python3') let g:spacevim_autocomplete_method = 'deoplete' elseif has('lua') let g:spacevim_autocomplete_method = 'neocomplete' diff --git a/autoload/SpaceVim/layers/autocomplete.vim b/autoload/SpaceVim/layers/autocomplete.vim index e4db51072..b482fbf7b 100644 --- a/autoload/SpaceVim/layers/autocomplete.vim +++ b/autoload/SpaceVim/layers/autocomplete.vim @@ -58,6 +58,10 @@ function! SpaceVim#layers#autocomplete#plugins() abort \ 'on_event' : 'InsertEnter', \ 'loadconf' : 1, \ }]) + if !has('nvim') + call add(plugins, ['SpaceVim/nvim-yarp', {'merged': 0}]) + call add(plugins, ['SpaceVim/vim-hug-neovim-rpc', {'merged': 0}]) + endif endif if has('patch-7.4.774') call add(plugins, ['Shougo/echodoc.vim', { @@ -67,6 +71,7 @@ function! SpaceVim#layers#autocomplete#plugins() abort \ }]) endif call add(plugins, ['tenfyzhong/CompleteParameter.vim', {'merged': 0}]) + call add(plugins, ['SpaceVim/LanguageClient-neovim', {'merged': 0}]) return plugins endfunction