Ext Opts Jump Index #916
-
I would like to use inline extmarks to show the jump locations and order of nodes in my snippets. Is it possible to:
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
(1.) should not be necessary, see below (at least for inserting the inlay-hint for all insertNodes) But this can be done somewhat comfortably if you're using the lua-loader: override the default 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 |
Beta Was this translation helpful? Give feedback.
(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
(insnip_env
) with a function which also setsext_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)