1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

fix(cmp): use nvim-cmp for nvim v0.7.x or higher

This commit is contained in:
Eric Wong 2024-06-02 13:46:15 +08:00
parent 097ea8684d
commit 157e276226

View File

@ -174,8 +174,10 @@ 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')
elseif value ==# 'nvim-cmp' && !has('nvim-0.7.0')
" https://github.com/hrsh7th/nvim-cmp/issues/231
" nvim-cmp Breaking changes
call SpaceVim#logger#warn('nvim-cmp will only work on nvim v0.7.x or higher')
continue
endif
elseif name ==# 'statusline_right_sections'