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
recently i created a custom command for referencing \usingref{} and i would like for it to behave just like eqref, what changes i can make to autocomplete references just like the original command?
i searched on the original code and found out this file under /vimtex/autoload/vimtex/complete.vim
It's hard to properly understand what you are asking about. The first sentence sort of makes sense, then I get confused, especially when you mention the syntax rules in syntax.vim.
I believe what you are asking for is how to configure VimTeX to allow label completion for custom commands such as your \usingref{}?
A friendly advice is to be more explicit and clear about what you are actually doing here. What is the definition of your custom command?
Now, I'm sorry to say there is currently no way to configure this. That is, the supported completion commands are hard coded; you can see them here:
I'm not very fond of adding more options, so could I ask why you want to make your own custom reference command? There are several packages that may provide something like what you want already, e.g. cleveref.
Description
recently i created a custom command for referencing
\usingref{}
and i would like for it to behave just likeeqref
, what changes i can make to autocomplete references just like the original command?i searched on the original code and found out this file under
/vimtex/autoload/vimtex/complete.vim
also in
/vimtex/autoload/vimtex/syntax.vim
Should i copy those substituting
\eqref
by\usingref
? where do i paste it?i dont want to conceal the command.
The text was updated successfully, but these errors were encountered: