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 having an issue that I'd like to find a fix for, where if I start using a snippet and then partway through start doing something else (which is common for me, don't judge), the NEXT time I use a snippet the first node jump takes my cursor somewhere random. From what I can gather this has to do with Luasnip not knowing that I'm done using the snippet and trying to do a jump in a still running snip.
The fix I'd like to implement is to use the Luasnip API to set up an autocmd that will exit any active snips if I exit insert mode. The autocmd is simple enough, however figuring out which API method to use isn't.
Anyone able to recommend which method to use? Or another way to achieve the same result?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm having an issue that I'd like to find a fix for, where if I start using a snippet and then partway through start doing something else (which is common for me, don't judge), the NEXT time I use a snippet the first node jump takes my cursor somewhere random. From what I can gather this has to do with Luasnip not knowing that I'm done using the snippet and trying to do a jump in a still running snip.
The fix I'd like to implement is to use the Luasnip API to set up an autocmd that will exit any active snips if I exit insert mode. The autocmd is simple enough, however figuring out which API method to use isn't.
Anyone able to recommend which method to use? Or another way to achieve the same result?
Beta Was this translation helpful? Give feedback.
All reactions