From f5574cb42d6efd1d51004e950c9594967bc02b42 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 15 Jun 2023 19:52:49 +0800 Subject: [PATCH] fix(opt): use nvim-cmp and neo-tree only for neovim --- autoload/SpaceVim/custom.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autoload/SpaceVim/custom.vim b/autoload/SpaceVim/custom.vim index 6159142e0..03eadd2c8 100644 --- a/autoload/SpaceVim/custom.vim +++ b/autoload/SpaceVim/custom.vim @@ -159,6 +159,9 @@ function! s:apply(config, type) abort if value ==# 'defx' && !has('python3') call SpaceVim#logger#warn('defx requires +python3!') continue + elseif value ==# 'neo-tree' && !has('nvim') + call SpaceVim#logger#warn('neo-tree requires neovim') + continue endif " keep backward compatibility elseif name ==# 'autocomplete_method' @@ -171,6 +174,9 @@ function! s:apply(config, type) abort call SpaceVim#logger#warn('deoplete requires +python3!') continue endif + elseif value ==# 'nvim-cmp' && !has('nvim') + call SpaceVim#logger#warn('nvim-cmp requires neovim') + continue endif elseif name ==# 'statusline_right_sections' let name = 'statusline_right'