mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:20:04 +08:00
Add enter mapping for ultisnips
This commit is contained in:
parent
36b2ef40be
commit
64d18409ed
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user