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

[FEATURE] Ability to add extra options to hightlights #351

Open
h3xOo opened this issue Jul 4, 2024 · 1 comment
Open

[FEATURE] Ability to add extra options to hightlights #351

h3xOo opened this issue Jul 4, 2024 · 1 comment
Assignees

Comments

@h3xOo
Copy link

h3xOo commented Jul 4, 2024

Is your feature request related to a problem? Please describe.

I want to make small tweaks (make some treesitter groups bold, some italic etc). I thought about some clever use of overrides = {}, but neovim doesn't currently support highlight constructs like { link = "GruvboxAqua", bold = true }. So I would have to either use plain colors from configuration, which I don't like, since I often change light and dark theme (I would have to change these values), or just forget about extra italics/bolds etc.

Describe the solution you'd like

I thought about something like:

require("gruvbox").setup({
    extras = {
        ["@boolean"] = { bold = true }
    }
}

This of course would use default colorscheme for @boolean but would add bold = true.
Or if it would be to painful to implement, maybe some predefined treesitter groups, like keyword, boolean, Macro, Directive, function etc.

@h3xOo
Copy link
Author

h3xOo commented Jul 7, 2024

As I looked into some other schemes, they allow overrides to be a function(colors) which returns table of overridden highlight groups.

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

No branches or pull requests

2 participants