ellisonleao / gruvbox.nvim

Lua port of the most famous vim colorscheme
MIT License
1.95k stars 210 forks source link

[FEATURE] add option to disable other plugin colors #349

Open epheien opened 4 months ago

epheien commented 4 months ago

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

A considerable number of plugins have their own highlight colors that are suitable for linking to some regular highlight groups, so it is best to has a option to disable the theme specific highlight colors and try to modularize these codes as much as possible.

For example, I am quite satisfied with the default color scheme of NvimTree in the old gruvbox display, but after switching to this theme, I found that almost all the colors have changed. If I want to restore it, I need to modify the theme code or reset the highlighted groups in the configuration file, which resulted in a considerable amount of redundant code

Describe the solution you'd like

The main file (or function) only contains basic theme colors. Please listen to the add options to configure whether to enable color matching for other plugins

ellisonleao commented 4 months ago

but after switching to this theme, I found that almost all the colors have changed

I am curious about this statement here. Can you add more info? Are you using treesitter highlights?

epheien commented 4 months ago

but after switching to this theme, I found that almost all the colors have changed

I am curious about this statement here. Can you add more info? Are you using treesitter highlights?

What I mean is that the colors of some of my plugins have been changed, such as nvimtree and telescope.

The following are the options for the catppuccion theme corresponding to the functions I described

Some integrations are enabled by default, you can control this behaviour with
`default_integrations` option.

>lua
    require("catppuccin").setup({
        default_integrations = false,
    })
<

Below is a list of supported plugins and their corresponding integration
module.

...