Skip to content
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

Add More Options to Configure Italicization #185

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

agrzeslak
Copy link

Before this commit, it was possible to enable italicization of strings and comments. This seems fairly arbitrary as users (myself included) may want to choose settings other than these. For instance, some other themes use italicization to separate keywords, or other language-specific patterns. While this may not be of interest to everyone, it seems reasonable to allow it to be configurable.

This patch therefore introduces the following configuration options:

  • g:gruvbox_italicize_statements
  • g:gruvbox_italicize_conditionals
  • g:gruvbox_italicize_repeats
  • g:gruvbox_italicize_label
  • g:gruvbox_italicize_exceptions
  • g:gruvbox_italicize_keywords

If this is an acceptable change, I'm happy to also update the wiki documentation to match.

Before this commit, it was possible to enable italicization of strings
and comments. This seems fairly arbitrary as users (myself included) may
want to choose settings other than these. For instance, some other
themes use italicization to separate keywords, or other
language-specific patterns. While this may not be of interest to
everyone, it seems reasonable to allow it to be configurable.

This patch therefore introduces the following configuration options:
- g:gruvbox_italicize_statements
- g:gruvbox_italicize_conditionals
- g:gruvbox_italicize_repeats
- g:gruvbox_italicize_label
- g:gruvbox_italicize_exceptions
- g:gruvbox_italicize_keywords
italicize_comments previously was coded differently to the other
italicization checks. This patch simply brings it into line without
changing the functionality.
@rbong
Copy link

rbong commented Oct 24, 2022

It seems not obvious to me if these should be options or not.

It may be better to focus on a couple recommended highlight groups to enable italics for and leave the rest to :hi if you want more customization.

I will leave this open to more feedback - I don't use italics. Just wanted to share that it's not obvious to me if we should merge.

@agrzeslak
Copy link
Author

@rbong completely fair and understandable, especially to avoid ongoing creep in the amount of options. If there's interest in adding some more customisation, but in a more palatable form, then I'd be more than happy to change the mechanism through which this happens. I'll go back and see if I can think of something different that may work better. Thanks for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants