Closed SirWrexes closed 1 year ago
Note: Obviously, it worked absolutely fine with Plug. And my terminal is Kitty which supports transparency perfectly. So I'm at a complete loss here.
Same issue, different repro for LazyVim, which is the recommended setup for LazyVim.
I have this under ~/.config/nvim/lua/plugins/colorschemes.lua
return {
-- install nordfox via nightfox
{
"EdenEast/nightfox.nvim",
opts = {
transparent = true,
},
},
-- configure LazyVim to load nordfox
{
"LazyVim/LazyVim",
opts = {
colorscheme = "nordfox",
},
},
}
"nordfox" is enabled correctly, but the transparency does not work.
Fixed it, I was missing the second options = {}
It's supposed to be:
{
"EdenEast/nightfox.nvim",
opts = {
options = {
transparent = true,
},
},
},
Yep, that fixed it! Thanks~ Goes to show that 9 out of 10 times, the problem is actually situated between the PC and the chair.
Neovim version (nvim -v)
NVIM v0.9.1
Operating system/version
Linux 6.3.9-arch1-1
Describe the bug
I'm migrating from Plug to LazyVim (what an upgrade, damn!) However, as title says, transparency just doesn't work. When checking
hi Normal
, theguibg
is always set to the different themes' values. My searches in issues and PRs also haven't been fruitful.I've tried calling
setup()
from many different places for this.opts
spec optionconfig
spec optioninit.lua
.config/nvim/lua
then called from init:lua ...
)NightfoxInteractive
I've tried setting
termguicolors
to true from all different places too, and tried doing it before and after setting up Nightfox. And same with callingvim.cmd.colorscheme
in all those different places at different times relative to LazyVim setup—in the scope of what is possible considering lazy loading. Nothing worked, I can't seem to find a way to get it right. The only workaround I found was to set the highlight groups by end, but I know from experience that it is a pain and there will always be a bit here or there that I forgot and need to fix and it can take a while to find the right group, even with helper functions included in NeoVim and TreeSitter.Steps To Reproduce
Try setting up
transparent = true
with the plugin installed with LazyVim.Expected Behavior
Welp, buffers should have transparent backgrounds.
Repro