-
|
Hello, I'm running into an issue when using vimade with dropbar.nvim. As background, dropbar "dims" any of its bars in non-current windows by changing its highlights to darker ones (I think the code is in hlgroups.lua). But when vimade fades non-current windows, it seems like it deactivates the bar dimming and applies the fade on top of the result. I tried adding blocklist rules for some of the relevant highlights (see README), but it seemed to have no effect. Does anyone have any ideas on what may be going on? Some steps to reproduce:
Expected result |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
|
Hi @shyun3 ! Thank you for the question/issue and detailed repro steps! This should be covered by blocklist, but it can be a bit picky to configure. In your setup for vimade do something similar to the following. If using lazy + opts: If using setup: It should be compatible with any recipes / other options you have as well, but let me know how that goes. |
Beta Was this translation helpful? Give feedback.
-
|
doh sorry about that can you see if the regex blocklist format gets you any closer?
I think that may mostly work, but some of the icon toggling doesn't seem exactly right, but will have to look later in the evening |
Beta Was this translation helpful? Give feedback.
-
|
appreciate your testing and input & sorry for the delay! it seems like there is a need for blocklist to have different mechanisms for blocking. The way vimade is current blocklist is setup mostly for plugins not to dynamically change colors (which is counterintuitive!) - basically behind the scenes blocklist forces the current values to be preserved and doesnt really have much flexibility for other plugins manipulating things dynamically: vimade/lua/vimade/highlighters/namespace.lua Lines 184 to 186 in 266cb28 That logic basically breaks anything that a blocked highlight links to and then forces it to get preserved. The reason it was done that way was to handle cases where a "blocked" highlight links to a color that is not blocked (in that case you'd still want the blocked color to be "blocked") And then later there is logic to make sure highlights that link to a blocked highlight still get faded... I think here in this scenario we need a mechanism to actually capture "completely don't touch this" or that the "highlight link needs to link to itself" (link to yourself should cause the highlight to pick up its global namespace attributes but need to re-test it)...Also need to permit some type of options in blocklist. I think both of these should be possible |
Beta Was this translation helpful? Give feedback.
-
|
I think after updating vimade it should work now! let me know if not though! Fixed an issue with how winhl was being prioritized. For the blocklist, you'll want these settings I think: |
Beta Was this translation helpful? Give feedback.




I think after updating vimade it should work now! let me know if not though! Fixed an issue with how winhl was being prioritized. For the blocklist, you'll want these settings I think: