u/Dalik98

▲ 8 r/neovim

Make Undo Break before snippet auto expansion

Hello everyone,

I use luasnippet, and I have a lot of auto snippets, that are really nice until they are not because sometimes I misclick and a snippet expands by mistake.

If that happens, I go to normal mode and i press u, but this cancel not only the snippet but also all I have been written in INSERT mode, before the snippet expansion.

I would like to create an undo block before the auto snippet expansion, such that when pressing u, in normal mode, only that is removed. Any ideas ?

reddit.com
u/Dalik98 — 4 days ago