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 support for treesitter highlight groups #26

Open
netfri25 opened this issue Oct 19, 2022 · 3 comments
Open

Add support for treesitter highlight groups #26

netfri25 opened this issue Oct 19, 2022 · 3 comments

Comments

@netfri25
Copy link

Recently, treesitter changed the highlight groups from something like TSFunction into @function, so I tried customizing it using the vim.g.gruvbox_theme variable, but it throws an error saying that Theme @... does not exist.
I'm not sure if I did something wrong but I don't think it should give that error.

this is my current gruvbox-flat config file:

vim.g.gruvbox_flat_style = 'dark'
vim.g.gruvbox_terminal_colors = true
vim.g.gruvbox_italic_comments = true
vim.g.gruvbox_italic_keywords = false
vim.g.gruvbox_italic_functions = false
vim.g.gruvbox_italic_variables = false
vim.g.gruvbox_transparent = false
vim.g.gruvbox_hide_inactive_statusline = false
vim.g.gruvbox_sidebars = { 'NvimTree' }
vim.g.gruvbox_dark_sidebar = true
vim.g.gruvbox_dark_float = true
vim.g.gruvbox_colors = {}
vim.g.gruvbox_theme = {
   -- ['@parameter'] = { fg = 'fg' },
   ['@field'] = { fg = 'red' },
   -- ['@constructor'] = { fg = 'fg' },
   ['@function.builtin'] = { fg = 'cyan' },
   ['@constant.builtin'] = { fg = 'orange' },
   ['@function.macro'] = { fg = 'cyan' },
   ['@variable.builtin'] = { fg = 'red' },
   ['@label'] = { fg = 'red' },
   ['@operator'] = { fg = '#818387' },
   ['@namespace'] = { fg = 'yellow' },
}
@eddyekofo94
Copy link
Owner

@netfri25 a PR maybe?

@Perry3D
Copy link

Perry3D commented Dec 12, 2022

@eddyekofo94
Copy link
Owner

What I sais is make a PR and I will merge it

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

3 participants