1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:40:06 +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'
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>"