Open devenv opened 3 years ago
This is a known Utlisnip problem. Whatever "expand" imap
you have for snippets in UltiSnips (default is tab), you cant use that key anywhere else.
So I would suggest something like C-n
and C-p
for pumvisible
popup and Tab
S-Tab
for UtliSnip expansion
Thanks for reply :) But I don't use tab for completion, I use C-n.
I changed utlisnips mapping to
let g:UltiSnipsExpandTrigger = "<C-l>"
let g:UltiSnipsJumpForwardTrigger = "<C-l>"
let g:UltiSnipsJumpBackwardTrigger = "<C-h>"
same behavior.
Jumping to the next placeholder in a snippet doesn't work after a completion.
My testing minimal init.vim
Tried without
inoremap <tab>
too.How to reproduce Expand any snippet with two or more placeholders, autocomplete anything then press tab, it doesn't work. e.g.
from ${1} import ${2}
from<tab><c-n><c-n><cr><tab>
whilefrom<tab><tab>
does work.