Transparent background, cursor_column background and selection background options
Added transparent background which can be set by
let g:gruvbox_transparent_bg=1
Added cursor_column background option which can be set by
let g:gruvbox_cursor_column=<color_name>
Added selection background option which can be set by
let g:gruvbox_selection_bg=<color_name>
@morhetz could you please take a look?
i'm using this branch a while to get the transparent background and from my point of view, it looks good! thank you @Dave-Elec
Working perfectly for me now! Thanks @Dave-Elec
Thanks, Glad it helped.
So, are you going to merge it?
This is a great idea, although unfortunately this fails for me in both nvim-qt and gvim in windows (background becomes a solid colour dictated by background value).
You may want to submit this PR to https://github.com/gruvbox-community/gruvbox
Thanks, @Dave-Elec ! This worked for me in nvim. Using nvim-gtk or gnvim both this and the command on https://github.com/morhetz/gruvbox/issues/96 don't work.
When this background is activated, some color's change on airline/tabline.


@saragiotto Try putting colorscheme gruvbox after gruvbox settings.
Sorry, I don't use gruvbox anymore (currently using gruvbox-material) so I can't test it.
I also had the same issue with g:gruvbox_transparent_bg this works fine in Mac's terminal (first screenshot) but creates problems in item (second screenshot)
I answered this on stack over flow - https://stackoverflow.com/a/67569365/14526555. copy-pasting from there.
" Workaround for creating transparent bg
autocmd SourcePost * highlight Normal ctermbg=NONE guibg=NONE
\ | highlight LineNr ctermbg=NONE guibg=NONE
\ | highlight SignColumn ctermbg=NONE guibg=NONE
People on internet has similar thing with VimEnter instead of SourcePost. VimEnter solves this problem partially and creates prblem when we source again (therefore SourcePost)
Final Results on iterm
see this - https://github.com/kalkayan/dotfiles for more info.
Totally worked for making gruvbox transparent " Workaround for creating transparent bg autocmd SourcePost * highlight Normal ctermbg=NONE guibg=NONE \ | highlight LineNr ctermbg=NONE guibg=NONE \ | highlight SignColumn ctermbg=NONE guibg=NONE