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

fix(coc): fix coc tab && S-tab keybinding

This commit is contained in:
wsdjeg 2023-03-30 11:03:42 +08:00
parent f450732164
commit 899a1943f6
2 changed files with 5 additions and 0 deletions

View File

@ -91,6 +91,9 @@ endfunction
if get(g:, 'spacevim_snippet_engine', 'neosnippet') ==# 'neosnippet'
function! SpaceVim#mapping#shift_tab() abort
if g:spacevim_autocomplete_method ==# 'coc' && coc#pum#visible()
return coc#pum#prev(1)
endif
return pumvisible() ? "\<C-p>" : "\<Plug>delimitMateS-Tab"
endfunction
elseif get(g:, 'spacevim_snippet_engine', 'neosnippet') ==# 'ultisnips'

View File

@ -26,6 +26,8 @@ if g:spacevim_snippet_engine ==# 'neosnippet'
\ && luaeval("require('cmp').visible()")
\ )
return "\<C-n>"
elseif g:spacevim_autocomplete_method ==# 'coc' && coc#pum#visible()
return coc#pum#next(1)
elseif has('patch-7.4.774')
\ && g:spacevim_autocomplete_method !=# 'nvim-cmp'
\ && complete_parameter#jumpable(1)