mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:10:06 +08:00
fix(core): check requirements when change autocomplete_method
This commit is contained in:
parent
efa65d6537
commit
f7ccafb114
@ -161,6 +161,17 @@ function! s:apply(config, type) abort
|
||||
continue
|
||||
endif
|
||||
" keep backward compatibility
|
||||
elseif name ==# 'autocomplete_method'
|
||||
if value ==# 'deoplete' && !has('python3')
|
||||
if (has('python3')
|
||||
\ && (SpaceVim#util#haspy3lib('neovim')
|
||||
\ || SpaceVim#util#haspy3lib('pynvim'))) &&
|
||||
\ (has('nvim') || (has('patch-8.0.0027')))
|
||||
else
|
||||
call SpaceVim#logger#warn('deoplete requires +python3!')
|
||||
continue
|
||||
endif
|
||||
endif
|
||||
elseif name ==# 'statusline_right_sections'
|
||||
let name = 'statusline_right'
|
||||
elseif name ==# 'statusline_right_sections'
|
||||
|
Loading…
Reference in New Issue
Block a user