bluz71 / vim-moonfly-colors

A dark charcoal theme for modern Neovim & classic Vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to get a transparent background

SinTan1729 opened this issue · comments

I have

vim.g.moonflyTransparent = true

inside my plugin/moonfly.lua file but still getting an opaque background.

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:

moonfly

A couple of things to look for:

  • It is best to set vim.g.moonflyTransparent = true nice and early, before setting the colorscheme
  • 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.

You're right. Moving vim.cmd [[colorscheme moonfly]] to the end of plugin/moonfly.lua solved it.

Excellent.