eddyekofo94 / gruvbox-flat.nvim

Another attempt of a flat Gruvbox theme for Neovim
MIT License
243 stars 22 forks source link

Add support for treesitter highlight groups #26

Open netfri25 opened 2 years ago

netfri25 commented 2 years ago

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 commented 2 years ago

@netfri25 a PR maybe?

Perry3D commented 1 year ago

These are the new highlights: https://github.com/neovim/neovim/blob/3217a31f9b0eb93a9c4d01f6a15b9a104e4f56f3/src/nvim/highlight_group.c#L267-L277

eddyekofo94 commented 1 year ago

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