morhetz / gruvbox

Retro groove color scheme for Vim
13.85k stars 1.11k forks source link

`g:gruvbox_transparent_bg` has no effect #454

Open spoutn1k opened 11 months ago

spoutn1k commented 11 months ago

I have the following configuration in my .vimrc:

set background=dark

let g:gruvbox_bold = 1
let g:gruvbox_transparent_bg = 1
let g:gruvbox_improved_warnings = 1

colorscheme gruvbox

Yet the background of vim is a solid color. (My terminal bg is transparent)

I tried:

set background=dark
hi Normal ctermbg=None

let g:gruvbox_bold = 1
let g:gruvbox_transparent_bg = 1
let g:gruvbox_improved_warnings = 1

colorscheme gruvbox

To no avail.

The only solution I have is to override the colorscheme value by placing the ctermbg directive after the colorscheme load.

Am I doing something wrong ?

vtrgnc commented 10 months ago

I'm having the same issue in Lua too.

NeoSahadeo commented 10 months ago

If you're using nvim then there is a more update-to-date gruvbox theme. Transparency works there.

https://github.com/ellisonleao/gruvbox.nvim

vtrgnc commented 10 months ago

Thanks!