1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:30:04 +08:00

fix(opt): use nvim-cmp and neo-tree only for neovim

This commit is contained in:
wsdjeg 2023-06-15 19:52:49 +08:00
parent 45f45774b9
commit f5574cb42d

View File

@ -159,6 +159,9 @@ function! s:apply(config, type) abort
if value ==# 'defx' && !has('python3') if value ==# 'defx' && !has('python3')
call SpaceVim#logger#warn('defx requires +python3!') call SpaceVim#logger#warn('defx requires +python3!')
continue continue
elseif value ==# 'neo-tree' && !has('nvim')
call SpaceVim#logger#warn('neo-tree requires neovim')
continue
endif endif
" keep backward compatibility " keep backward compatibility
elseif name ==# 'autocomplete_method' elseif name ==# 'autocomplete_method'
@ -171,6 +174,9 @@ function! s:apply(config, type) abort
call SpaceVim#logger#warn('deoplete requires +python3!') call SpaceVim#logger#warn('deoplete requires +python3!')
continue continue
endif endif
elseif value ==# 'nvim-cmp' && !has('nvim')
call SpaceVim#logger#warn('nvim-cmp requires neovim')
continue
endif endif
elseif name ==# 'statusline_right_sections' elseif name ==# 'statusline_right_sections'
let name = 'statusline_right' let name = 'statusline_right'