-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow argstyle
keyword in vimtex_syntax_custom_cmds
to accept name of highlight group
#2574
Comments
You already can. The Given let g:vimtex_syntax_custom_cmds = [
\ {'name': 'foo', 'mathmode': 1, 'argstyle': 'bold'},
\ {'name': 'bar'},
\] This will create these match groups:
The |
Great, that works, thank you! I see that this is explained at the end of |
Thanks, I agree. I've updated the docs; let me know what you think. |
That covers it perfectly. I've been customizing my vimtex syntax in the meantime, this plugin is just a dream come true. Thank you! |
I'm glad to hear you like it! :) <3 |
Is your feature request related to a problem? Please describe it.
In PR #2033 you extended the list of accepted
argstyle
values in thevimtex_syntax_custom_cmds
setting to include different combinations of bold, italics, and underline. I would like to go even further in the customization, allowing the whole range of options that thehighlight
command provides (foreground colour, background colour, etc.).Describe the solution you'd like
From PR #2033, it seems that you define custom highlight groups for the existing
argstyle
values and expose those to the user. A more flexible solution could be that user passes the name of a highlight group directly, which they define prior to the setting:I'm not sure that this is possible but it would allow an even greater level of customization. In particular because I'm not a fan of bold or italic fonts in my buffers :-)
The text was updated successfully, but these errors were encountered: