Skip to content

Ext Opts Jump Index #916

Answered by L3MON4D3
austinliuigi asked this question in Q&A
Jun 9, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

(1.) should not be necessary, see below (at least for inserting the inlay-hint for all insertNodes)
(2.) is not really possible, unfortunately

But this can be done somewhat comfortably if you're using the lua-loader: override the default i (in snip_env) with a function which also sets ext_opts on the insertNode before returning it.

One issue with this is that this is not global, but only applies to snippets loaded via lua.

It might be worth it to look into generating ext_opts more dynamically, or at least provide some global settings for common stuff (like showing the jump-order via inlay hints)

Replies: 1 comment 1 reply

Comment options

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

Answer selected by austinliuigi
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