Unable to get a transparent background
SinTan1729 opened this issue · comments
Sayantan Santra commented
I have
vim.g.moonflyTransparent = true
inside my plugin/moonfly.lua
file but still getting an opaque background.
Dennis B commented
Sorry for the late response, this issue got lost in my inbox.
Anyway, as far as I can tell, transparency works just fine in Alacritty with Neovim when vim.g.moonflyTransparent
is set to true
, as seen in this image:
A couple of things to look for:
- It is best to set
vim.g.moonflyTransparent = true
nice and early, before setting thecolorscheme
- Test other Neovim themes (such as Tokyo Night) and see whether transparency works or not
From my perspective, transparency does work. You probably have a simple configuration issue (possibly setting transparency too late, maybe after the theme is loaded).
For now closing this.
Sayantan Santra commented
You're right. Moving vim.cmd [[colorscheme moonfly]]
to the end of plugin/moonfly.lua
solved it.
Dennis B commented
Excellent.