From 0700fc2622cfa421fc53d442ec5c2957a5dd4839 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Wed, 13 Apr 2022 13:24:05 +0800 Subject: [PATCH] docs(complete): update doc of autocomplete_method --- autoload/SpaceVim.vim | 2 ++ autoload/SpaceVim/layers/autocomplete.vim | 2 +- doc/SpaceVim.txt | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 0b13f0fd9..4f8132841 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -350,6 +350,8 @@ if (has('python3') " < " " and you can alse set this option to coc, then coc.nvim will be used. + " If you are using neovim, you can also set this option to `nvim-cmp`, then + " nvim-cmp will be used. "" " Set the autocomplete engine of spacevim, the default logic is: diff --git a/autoload/SpaceVim/layers/autocomplete.vim b/autoload/SpaceVim/layers/autocomplete.vim index 89a41061c..d0caa9e83 100644 --- a/autoload/SpaceVim/layers/autocomplete.vim +++ b/autoload/SpaceVim/layers/autocomplete.vim @@ -102,7 +102,7 @@ function! SpaceVim#layers#autocomplete#plugins() abort \ 'merged' : 0, \ 'loadconf' : 1, \ }]) - if g:spacevim_snippet_engine ==# 'neocomplete' + if g:spacevim_snippet_engine ==# 'neosnippet' call add(plugins, [g:_spacevim_root_dir . 'bundle/cmp-neosnippet', { \ 'merged' : 0, \ }]) diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 2b3ee9fb3..83e216dcc 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -306,7 +306,9 @@ Set the autocomplete engine of spacevim, the default logic is: endif < -and you can alse set this option to coc, then coc.nvim will be used. +and you can alse set this option to coc, then coc.nvim will be used. If you +are using neovim, you can also set this option to `nvim-cmp`, then nvim-cmp +will be used. ============================================================================== AUTOCOMPLETE_PARENS *SpaceVim-options-autocomplete_parens*