LuaSnip
LuaSnip copied to clipboard
Is there a way to find out if the curser is on the last node?
Lets say I mave a snippet with 4 nodes, is there a way to find out if the curser is on the 4th (and last) node?
Mhh, no, not easily.. We have all functionality for doing this, it's just a matter of plugging everything together correctly :D
What's your goal? Just so I can get an idea of what API would be appropriate :)
The goal is something like;
if I'm on the last node and I press ENTER, then I leave the snippet and move to the next line below in insert mode, or if I'm on the last node and I press ESC, then I leave the snippet and move to the next line below in normal mode,