Skip to content

Transparent background, cursor_column background and selection background options - #287

Open
Dave-Elec wants to merge 3 commits into
morhetz:masterfrom
Dave-Elec:master
Open

Transparent background, cursor_column background and selection background options#287
Dave-Elec wants to merge 3 commits into
morhetz:masterfrom
Dave-Elec:master

Conversation

@Dave-Elec

Copy link
Copy Markdown

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>

@bavarianbidi

Copy link
Copy Markdown

@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

@areisrosa

Copy link
Copy Markdown

Working perfectly for me now!
Thanks @Dave-Elec

@Dave-Elec

Copy link
Copy Markdown
Author

Thanks, Glad it helped.

@funnydman

Copy link
Copy Markdown

So, are you going to merge it?

@HawkinsT

HawkinsT commented May 4, 2020

Copy link
Copy Markdown

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

@polyzen

polyzen commented May 4, 2020

Copy link
Copy Markdown

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

@vnpavanelli

Copy link
Copy Markdown

Thanks, @Dave-Elec ! This worked for me in nvim.
Using nvim-gtk or gnvim both this and the command on #96 don't work.

@saragiotto

saragiotto commented Jun 22, 2020

Copy link
Copy Markdown

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

@Dave-Elec

Dave-Elec commented Jun 23, 2020

Copy link
Copy Markdown
Author

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

@kalkayan

kalkayan commented May 17, 2021

Copy link
Copy Markdown

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.

@clint911

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants