-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Setting foreground to "NONE" on component is ignored #151
Comments
Thanks for reporting! I'm currently reworking highlights to use |
Hmm... this actually may not be a cokeline issue. I need to look into it more, but even setting fg to "NONE" directly before every call to set_hl has the same result. |
That is good to know! I'll keep looking into it today. |
Quite stumped by this at the moment, but I'll keep trying. Until then, you can use the |
Idea: why not conditionally use |
Psh, you think I would look at literally any other characters in the powerline fonts? 😂 I will give that a shot and see if it works. It makes sense that is should I think. |
Yeah, not sure why setting fg isn't possible but I can't get it to work at all. May be a terminal emulator thing? I'm on Wezterm. I haven't tried other terminals but if they don't work either, it may be worth submitting an issue upstream to Neovim. And I'm not sure how I thought I got it working before, pretty sure I was just confused because I can't replicate what I described. |
Sorry I hadn't gotten back to you on this. The icon provided isn't in the fonts I have setup for my terminal (I am using wezterm as well). I can see transparent foregrounds just kinda being a pain in the ass to support within neovim itself so it is very possible that this is something that just can't be done (in which case I will need to either accept my current solution of a color that you generally don't see, or fix my font setup to provide a unicode character that will work in my setup). This may just be a limitation of neovim, you are right. I don't know that I care enough to open up anything upstream on Neovim for this (mainly because I don't want to go through the effort of trying to recreate the issue in a minimal configuration when I don't fully understand where in the highlight process the issue exists in the first place). Probably worth closing this out unless you want to dig deeper into it lol |
Fair, no worries! I use FiraMono so maybe it's nerdfont-specific, though I had thought that Wezterm shipped with nerdfonts by default. Understandable, this is a pretty weird issue, definitely tough to create a plugin-less minimal config. I'll close this for now, I think I've dug enough into it to conclude that it's just not possible unfortunately, but if I find anything else out I'll reopen this and update. Hope you find a solution that works! |
To start, here is a screenshot showing the issue
![image](https://private-user-images.githubusercontent.com/2640668/257005656-71dd7ab3-ea7d-408e-992a-1dabbd6db345.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NjU5OTAsIm5iZiI6MTczOTU2NTY5MCwicGF0aCI6Ii8yNjQwNjY4LzI1NzAwNTY1Ni03MWRkN2FiMy1lYTdkLTQwOGUtOTkyYS0xZGFiYmQ2ZGIzNDUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMjA0MTMwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjNkMTBjNzU5NjA2YmUyMWY0OWM5ZTBlYjU3N2M5ODI4YTAzNjI0ZDdkMzE5NjM3MjM3NmE3MmVjZmNjMjRkOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.UtJ9gZoPhj5RDciC3SiF2mwJJn0hQdFbEZlduo8bZKQ)
This is accomplished with the following cokeline configuration
I would expect this to set the Foreground of the first component to
NONE
as that is what I am actively telling it to do. However it is being overriden by something.Below is a repo lua config that can be used to recreate this issue
I took a quick peek at the source, but nothing is standing out as overriding the foreground so I don't really know what is happening here.
This functionality is a bit important when you start messing with some of the weirder nerdfonts (such as
nf-pl-left_hard_divider
) as you have to set the Foreground to the color you want the "background" to be, and the Background to the color you want the foreground to beThe text was updated successfully, but these errors were encountered: