mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:20:05 +08:00
fix(coc): fix coc tab
&& S-tab
keybinding
This commit is contained in:
parent
f450732164
commit
899a1943f6
@ -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'
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user