You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently in the process of writing a colorscheme plugin, and I am facing an issue where the highlight for any group in control_hl_groups that my plugin sets are ignored / overridden by the setup() method in config/highlights.lua.
Similar behavior has also been noted in #178.
I have 2 things to point out:
Why is the background color for the control groups being taken from background of WinBar (or WinBarNC)? I think it makes more sense to inherit the background from Normal (or NormalNC).
The two version branches in the method are not equivalent in their logic; the older <0.8 version branch sets the "default" highlight groups correctly, whereas the newer >=0.8 branch destructively sets highlight groups (read :h nvim_set_hl) instead of the defaults. This can be fixed by adding the appropriate option, and the API calls can also be updated to the newer nvim_get_hl method.
As an experiment, I have already made the above changes in a local copy of this repo and it fixes the issue. But if we can have a discussion about what else to do, I am more than happy to open a PR for this.
Cheers :)
The text was updated successfully, but these errors were encountered:
Highlights set by colorschemes are overwritten by `nvim-dap-ui` plugin
in the `require("dapui.config").highlights.lua:setup()` method.
Modified the method to set the defaults for highlight groups instead
of overwriting previously set highlights (typically by colorschemes).
Added a helper function to use the newer `nvim_get_hl` API function if
NeoVim's version is atleast 0.9.
Highlights set by colorschemes are overwritten by `nvim-dap-ui` plugin
in the `require("dapui.config").highlights.lua:setup()` method.
Modified the method to set the defaults for highlight groups instead
of overwriting previously set highlights (typically by colorschemes).
Added a helper function to use the newer `nvim_get_hl` API function if
NeoVim's version is atleast 0.9.
I'm currently in the process of writing a colorscheme plugin, and I am facing an issue where the highlight for any group in
control_hl_groups
that my plugin sets are ignored / overridden by thesetup()
method in config/highlights.lua.Similar behavior has also been noted in #178.
I have 2 things to point out:
WinBar
(orWinBarNC
)? I think it makes more sense to inherit the background fromNormal
(orNormalNC
).:h nvim_set_hl
) instead of the defaults. This can be fixed by adding the appropriate option, and the API calls can also be updated to the newernvim_get_hl
method.As an experiment, I have already made the above changes in a local copy of this repo and it fixes the issue. But if we can have a discussion about what else to do, I am more than happy to open a PR for this.
Cheers :)
The text was updated successfully, but these errors were encountered: