Proper way to change highlight groups in Trouble? #536
Unanswered
LarssonMartin1998
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I have a preference for tinting all of the tools in my config slightly darker than the main window with the buffers for visual clarity. I use Cappuccin Macchiato and usually color things like Telescope, Oil, and Trouble with the mantle (#1e2030) color rather than the base theme color (#24273a).
This is usually no more difficult than just linking the plugins "PluginNormal" (in this case TroubleNormal) and any other specific highlight group to my own defined highlight group. I have also tried to just retrieve all of the highlight groups in Trouble and just changing the bg to the mantle color directly. However, this has caused a lot of trouble (pun intended) for me. It seems that highlight groups in Trouble are dynamically changed depending on if you focus the Trouble window or not. Additionally, a refresh of the diagnostics window which results in highlight group changes seem to happen when your traverse the issues and happen upon a buffer change in the main window. It appears to me that the Trouble windows just gets populated with whatever highlight is active in the buffer that the symbols or diagnostics are taken from.
I have looked through the source code and the documentation but haven't found anything obvious about this. How would I go about changing highlight groups in Trouble? What I really am after is just having a different background color than the main window buffers in Trouble
Beta Was this translation helpful? Give feedback.
All reactions