mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-11 17:15:46 +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
|
continue
|
||||||
endif
|
endif
|
||||||
" keep backward compatibility
|
" 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'
|
elseif name ==# 'statusline_right_sections'
|
||||||
let name = 'statusline_right'
|
let name = 'statusline_right'
|
||||||
elseif name ==# 'statusline_right_sections'
|
elseif name ==# 'statusline_right_sections'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user