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

how to override treesitter highlight group? #94

Open
kubil6y opened this issue Oct 31, 2022 · 2 comments
Open

how to override treesitter highlight group? #94

kubil6y opened this issue Oct 31, 2022 · 2 comments

Comments

@kubil6y
Copy link

kubil6y commented Oct 31, 2022

-- Treesitter
--hl(0, '@error', { fg = c.vscRed, bg = 'NONE' })

@error is invalid lua and i cant seem to find the right keyword for it. does anyone have an idea?

@aaronrancsik
Copy link

I'm also interested :)

@aaronrancsik
Copy link

aaronrancsik commented Nov 20, 2022

So after a bit of google I found this:
https://stackoverflow.com/questions/25991232/lua-tables-assigning-values-to-key-in-tables

I was able to overwrite like this:

group_overrides = {
    ['@constant'] = { fg=c.vscBlue, bg = 'NONE' },
}

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