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 using blink.nvim with the built-in vim.snippet engine instead of LuaSnip.
With LuaSnip, it’s easy to visually mark the final tabstop ($0) using ext_opts[types.exitNode], for example:
This makes the final tabstop visible immediately when the snippet expands, which is extremely helpful for complex snippets.
But with vim.snippet, I can’t find any way to:
identify the final tabstop on expansion
or attach a highlight/extmark to it
or get tabstop positions like LuaSnip does
Is there any recommended way to implement a “final tabstop marker” with vim.snippet?
Or is this feature currently impossible without manually simulating jumps or scanning the inserted text?
Any guidance or ideas would be greatly appreciated!
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
Uh oh!
There was an error while loading. Please reload this page.
-
I’m using blink.nvim with the built-in vim.snippet engine instead of LuaSnip.
With LuaSnip, it’s easy to visually mark the final tabstop ($0) using
ext_opts[types.exitNode], for example:This makes the final tabstop visible immediately when the snippet expands, which is extremely helpful for complex snippets.
But with vim.snippet, I can’t find any way to:
Is there any recommended way to implement a “final tabstop marker” with vim.snippet?
Or is this feature currently impossible without manually simulating jumps or scanning the inserted text?
Any guidance or ideas would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions