Open PhineasGreene opened 3 years ago
I'm getting a similar issue. I did a search through the repository using GitHub's search bar for the text "transparent", and it found no results. Perhaps support for this option was removed at some point?
Searching through the other issues, I found this "solution", which works well with my setup that also uses the community gruvbox theme for Konsole:
autocmd VimEnter * hi Normal ctermbg=none
autocmd VimEnter * hi Normal ctermbg=none
Works well for me too. Thanks for suggesting it Shadow53.
I have encountered similar issue, and I think it's not gruvbox's fault.
I 'm using alacritty
which support true color and opacity.
so I have set termguicolors
in my vimrc.
But I found that termguicolors
is conflict with g:gruvbox_transparent_bg
.
if I have termguicolors but no colorscheme, the transparent background works without problems.
but when I have tgc and any colorscheme enabled at the same time, I can't get a transparent background.
A relevant issue is here.
It did work, however, I found the number column wired.
I'm getting a similar issue. I did a search through the repository using GitHub's search bar for the text "transparent", and it found no results. Perhaps support for this option was removed at some point?
Searching through the other issues, I found this "solution", which works well with my setup that also uses the community gruvbox theme for Konsole:
autocmd VimEnter * hi Normal ctermbg=none
this works like a charm. Still I have the same behavior with transparent_bg not having any effect
This works for me
autocmd VimEnter * hi Normal ctermbg=NONE guibg=NONE
I had the same problem.
Putting this exact same thing in .vimrc doesn't work but running this manually it works. Why?
A relevant issue is here. It did work, however, I found the number column wired.
Delete hi NonText
for removing ugly blue
color
Firstly, run some 'Compositing Manager' from the list:
https://wiki.archlinux.org/title/Xorg#Composite
compton
, picom
, or unagi
then set terminal settings:
in my case I use Alacritty
: $HOME/.config/alacritty/alacritty.yml
background_opacity: 0.90
Then in your vimrc
or init.vim
add:
hi Normal guibg=NONE ctrembg=NONE
or with !
hi! Normal guibg=NONE ctrembg=NONE
For me this solution breaks as soon as I open a :term
window. Anyone having the same issue?
This works for me
autocmd VimEnter * hi Normal ctermbg=NONE guibg=NONE
I had the same problem.
Putting this exact same thing in .vimrc doesn't work but running this manually it works. Why?
I have same problem - if I execute :highlight Normal ctermbg=NONE guibg=NONE
while running vim, background becomes transparent but if this same command is executed from vimrc or with autocmd It has no effect
This works for me
autocmd VimEnter * hi Normal ctermbg=NONE guibg=NONE
I had the same problem.
Putting this exact same thing in .vimrc doesn't work but running this manually it works. Why?
This works for me on .vimrc. Using picom and bspwm. gruvbox is the only plugin so far.
I'm getting a similar issue. I did a search through the repository using GitHub's search bar for the text "transparent", and it found no results. Perhaps support for this option was removed at some point?
Searching through the other issues, I found this "solution", which works well with my setup that also uses the community gruvbox theme for Konsole:
autocmd VimEnter * hi Normal ctermbg=none
worked for me in neovim as well. Thanks
autocmd VimEnter * hi Normal ctermbg=none
I am fairly new to vim so I have no idea what exactly is to be done here. Where Shall I add it?
@pratikthorat8 If you are use lua to config, you can add it in lua file and write like this, you can learn lua config by ThePrimeagen on YT.
vim.cmd("let g:gruvbox_transparent_bg = 1")
vim.cmd("autocmd VimEnter * hi Normal ctermbg=NONE guibg=NONE")
vim.cmd("colorscheme gruvbox")
hope it will help.
I managed to fix this in vim by adding both lines to my .vimrc file:
autocmd VimEnter * hi Normal ctermbg=NONE guibg=NONE
highlight Normal guibg=NONE ctermbg=NONE
For some reason it didn't work when only one of these lines was added.
I'm really liking the colors, but the transparent background option won't work for me. Here's my vimrc (the relevant portion at least):
This makes everything look good, but doesn't make the background transparent like I want it. In other words, toggling the value of
g:gruvbox_transparent_bg
has no effect. I am using suckless's simple terminal (st), which has a transparent background. If fact, I can see transparency through the edges where the terminal window extends past the rows and columns of text. Why am I not getting transparency?