-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Method used for highlighting breaks with colors set by theme #178
Comments
Also I don't think there is a need to set colors multiple times, because no colorscheme clears groups set by itself, so if the groups were set, they will stay so anyway. It would be better to set all groups on setup and then dont touch them again. Also, is there a particular reason why the value of control groups is copied instead of linking to the group? Do the groups have different use case from non-NC counterparts? |
The colors are being cleared by |
The reason is when using |
I understand you're trying to synchronize the background color of |
Also, why is this method launched only for nvim 0.8+. there is no reason to use cmd as a table, the same can be done as for all the previous commands. This also means that nvim pre-0.8 users aren't currently getting the winbar different color anyway. Is Only way to change the backgroud and keep the foreground is by highlighting with |
I sincerely don't think what you did in #180 is correct. Currently, any colorscheme that has |
I am not sure I understand what you mean. What exactly do you mean by not being picked? What sets of values are being used, if they are different from the defaults, where do they come from, if not the colorscheme? |
The problem might be I still don't understand the philosophy behind |
Hi, first of all, thanks for your kind explanation.
From my current observation,
For the first question, I meant/tried:
For the second question: I don't know. The point is that the problem only happened on nvim-dap-ui. |
I tried to find how the colorscheme you use works. I found this line, which might be something, but this would execute only if a different color scheme was set. Otherwise it works same as mine, so I don't see the issue there. Edit: |
@JosefLitos Good news: the linked PR #276 resolves this :) |
When I set the colors of
control_hl_groups
in my theme, it breaks upon switching to dark/light variant, where I update only the black/white colors. It seems that after setting these groups they all get cleared, while the groups likeDapUIScope
and all other outsidecontrol_hl_groups
stay fine:This causes an error in
config/highlights.lua:74
since you are trying to formatnil
.Also there is no reason to use vim.cmd for highlighting when 0.8 features setting the groups aside of just retrieving them.
I will try to rewrite all highlight groups to lua and see if that solves the issue. If I can get it solved that way, I would like to issue a PR.
The text was updated successfully, but these errors were encountered: