1
0
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:
wsdjeg 2017-04-03 00:31:23 +08:00
parent 0e213a470b
commit 8583d10c5c

View File

@ -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>"