Skip to content
Discussion options

You must be logged in to vote

Hi :)
You'd have to store the cursor-position using an extmark, insert text (which will shift the extmark with the text) and then query the new position of the extmark, and set the cursor on top of it (and then delete the extmark to avoid clutter ;) )

This is a bit cumbersome, and I think we should shift some stuff around s.t. lines can be added/removed in the resolveExpandParams-callback as long as they're before/after the line with the trigger.

I'll update here once I get to that :)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@dorage
Comment options

Answer selected by dorage
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants