mikavilpas / yazi.nvim

A Neovim Plugin for the yazi terminal file manager
MIT License
537 stars 18 forks source link

Could not find a background color, not highlighting #392

Closed Muhammad95959 closed 2 months ago

Muhammad95959 commented 2 months ago

I have a transparent background for my neovim theme and because of it I got Could not find a background color, not highlighting error I don't get that with a solid background image image

mikavilpas commented 2 months ago

Hmm, interesting. What theme do you use? What background color settings do you have?

Muhammad95959 commented 2 months ago

Hmm, interesting. What theme do you use? What background color settings do you have?

I found what's causing the bug highlight_hovered_buffers_in_same_directory = true everything is fine now after switching it to false

and as for your questions I use tokyonight theme and "xiyaowong/transparent.nvim" plugin to toggle transparency

mikavilpas commented 2 months ago

Ah, I see. I had not thought this case would be possible, so the error was needlessly shown. Your workaround is good, although you might still get an error message if you hover over a file you have open and visible.

I will release a fix for this behaviour (just hiding the message for now), so you should not see it after that.