1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:00:04 +08:00

Add enter mapping for ultisnips

This commit is contained in:
wsdjeg 2017-04-03 00:57:06 +08:00
parent 36b2ef40be
commit 64d18409ed

View File

@ -12,5 +12,12 @@ if g:spacevim_snippet_engine ==# 'neosnippet'
endif
endfunction
elseif g:spacevim_snippet_engine ==# 'ultisnips'
function! SpaceVim#mapping#enter#i_enter() abort
if pumvisible()
return "\<c-y>"
else
return "\<Enter>"
endif
endfunction
endif
" vim:set et sw=2 cc=80: