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