gruvbox icon indicating copy to clipboard operation
gruvbox copied to clipboard

Transparent background, cursor_column background and selection background options

Open Dave-Elec opened this issue 6 years ago • 11 comments

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>

Dave-Elec avatar Jun 19 '19 05:06 Dave-Elec

@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

bavarianbidi avatar Oct 23 '19 06:10 bavarianbidi

Working perfectly for me now! Thanks @Dave-Elec

areisrosa avatar Feb 12 '20 17:02 areisrosa

Thanks, Glad it helped.

Dave-Elec avatar Feb 12 '20 19:02 Dave-Elec

So, are you going to merge it?

funnydman avatar Apr 09 '20 14:04 funnydman

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).

HawkinsT avatar May 04 '20 14:05 HawkinsT

You may want to submit this PR to https://github.com/gruvbox-community/gruvbox

polyzen avatar May 04 '20 19:05 polyzen

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.

vnpavanelli avatar Jun 09 '20 17:06 vnpavanelli

When this background is activated, some color's change on airline/tabline.

Screen Shot 2020-06-22 at 11 32 13

Screen Shot 2020-06-22 at 11 35 29

saragiotto avatar Jun 22 '20 14:06 saragiotto

@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.

Dave-Elec avatar Jun 23 '20 21:06 Dave-Elec

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)

Screenshot 2021-05-17 at 5 48 59 PM Screenshot 2021-05-17 at 5 51 32 PM

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

Screenshot 2021-05-17 at 5 56 02 PM

see this - https://github.com/kalkayan/dotfiles for more info.

kalkayan avatar May 17 '21 12:05 kalkayan

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

clint911 avatar Aug 14 '22 23:08 clint911