Closed e-kwsm closed 5 years ago
Thanks.
@Shougo Unfortunately that is insufficient: when expanding a snippet that is not located at the end (e.g. lorem
in lorem blah blah
), cursor jumps to the end of line.
The commits affected snippets that assumes implicit ${0}
at ends; I will create PR to fix some of them.
I have fixed it. Please update neosnippet.
Problems summary
As of 4903cf61966f824b4e603780c9e3871b28f77ba9, nvim exits insert mode when calling
neosnippet_expand_or_jump
on a snippet without placeholders. Is it possible to behave as beforehand if a snippet has no placeholders?Expected
When calling
neosnippet_expand_or_jump
on a snippet without placeholders, cursor jumps to the end of the expanded one and stay in insert mode.Environment Information
:version
output: NVIM v0.4.0-342-g299f32dc0129minimal init.vim/vimrc
How to reproduce the problem from neovim/Vim startup
Then
nvim -u vimrc
andilorem<C-k>
.