mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
Fix enter mapping
This commit is contained in:
parent
0e213a470b
commit
8583d10c5c
@ -2,8 +2,10 @@
|
|||||||
if g:spacevim_snippet_engine ==# 'neosnippet'
|
if g:spacevim_snippet_engine ==# 'neosnippet'
|
||||||
function! SpaceVim#mapping#enter#i_enter() abort
|
function! SpaceVim#mapping#enter#i_enter() abort
|
||||||
if pumvisible()
|
if pumvisible()
|
||||||
if neosnippet#expandable_or_jumpable()
|
if neosnippet#expandable()
|
||||||
return "\<plug>(neosnippet_expand_or_jump)"
|
return "\<plug>(neosnippet_expand)"
|
||||||
|
else
|
||||||
|
return "\<c-y>"
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
return "\<Enter>"
|
return "\<Enter>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user