mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00: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'
|
if get(g:, 'spacevim_snippet_engine', 'neosnippet') ==# 'neosnippet'
|
||||||
function! SpaceVim#mapping#shift_tab() abort
|
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"
|
return pumvisible() ? "\<C-p>" : "\<Plug>delimitMateS-Tab"
|
||||||
endfunction
|
endfunction
|
||||||
elseif get(g:, 'spacevim_snippet_engine', 'neosnippet') ==# 'ultisnips'
|
elseif get(g:, 'spacevim_snippet_engine', 'neosnippet') ==# 'ultisnips'
|
||||||
|
@ -26,6 +26,8 @@ if g:spacevim_snippet_engine ==# 'neosnippet'
|
|||||||
\ && luaeval("require('cmp').visible()")
|
\ && luaeval("require('cmp').visible()")
|
||||||
\ )
|
\ )
|
||||||
return "\<C-n>"
|
return "\<C-n>"
|
||||||
|
elseif g:spacevim_autocomplete_method ==# 'coc' && coc#pum#visible()
|
||||||
|
return coc#pum#next(1)
|
||||||
elseif has('patch-7.4.774')
|
elseif has('patch-7.4.774')
|
||||||
\ && g:spacevim_autocomplete_method !=# 'nvim-cmp'
|
\ && g:spacevim_autocomplete_method !=# 'nvim-cmp'
|
||||||
\ && complete_parameter#jumpable(1)
|
\ && complete_parameter#jumpable(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user