You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm so used to press <Esc> after typing, so I often jump out of the snippet expansion before it is populated.
Ideas or possible solutions
Is it possible to add a custom mapping to escape from snippet expansion? So if this setting is defined, the default <Esc> is ignored, and you have to use your own mapping to escape.
Also, it would be nice to have a settings that forces you to press the escape mapping so the expansion does not quit automatically when all items are populated.
Alternatives you have considered
No response
The text was updated successfully, but these errors were encountered:
Hey! Please let me know if I'm missing anything, but pressing <Esc> generally doesn't finish snippet expansion; it enters normal mode and, if you don't have a normal mode mapping for jumping, you'll need to go back to insert mode to be able to jump around.
Maybe you could set up an autocmd for remapping <Esc> to something else while a snippet is active and remove this mapping once you're done with the snippet (:h snippy-autocmds).
Also, it would be nice to have a settings that forces you to press the escape mapping so the expansion does not quit automatically when all items are populated.
Looks like pressing i lets you jump back into snippet expansion, unless you move in normal mode. Thanks for this information!
If I can remap <Esc> into for example <Nop> only during snippet expansion, then I can prevent unintentionally jump out of snippet expansion so often. Nice to have a setting for such key, though. <Esc> should then be the default setting.
I used your nice nvim-snippy to write a plugin for file templates: nvim-skeletty. I was so tired of always copy, paste and substitute words from the same file template whenever I needed a new file in my project. I think it works pretty well at the moment, but it hasn't been tested by others AFAIK. It also lets you preview each file template if you have nvim-telescope installed, automatically. If you want to contribute to this plugin, you are welcome :)
Problem Statement
I'm so used to press
<Esc>
after typing, so I often jump out of the snippet expansion before it is populated.Ideas or possible solutions
Is it possible to add a custom mapping to escape from snippet expansion? So if this setting is defined, the default
<Esc>
is ignored, and you have to use your own mapping to escape.Also, it would be nice to have a settings that forces you to press the escape mapping so the expansion does not quit automatically when all items are populated.
Alternatives you have considered
No response
The text was updated successfully, but these errors were encountered: