gruvbox.nvim icon indicating copy to clipboard operation
gruvbox.nvim copied to clipboard

Transparency support

Open NOTMASTER09 opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe. New configuration system has nothing equivalent to setting g:gruvbox_transparent_bg to 1

Describe the solution you'd like Add a new config option

Describe alternatives you've considered I could try to override every highlight group, but that's a hack

Additional context None

NOTMASTER09 avatar Jun 28 '22 22:06 NOTMASTER09

What terminal do you use? isn't just better to add transparency over there?

ellisonleao avatar Jun 28 '22 22:06 ellisonleao

The problem is that transparency dissapears once i run nvim, because of termguicolor And i need termguicolor for colorizer

NOTMASTER09 avatar Jun 28 '22 22:06 NOTMASTER09

Honestly, I don't really like the transparency behavior. I can see that the original implementation is removed in the main gruvbox project, so I am not even sure if that is supported anymore. What if you just override the Normal group in your config. Will that work?

require("gruvbox").setup({
   overrides = {
       Normal = {},
   }
})
vim.cmd("colorscheme gruvbox")

ellisonleao avatar Jul 08 '22 14:07 ellisonleao

Honestly, I don't really like the transparency behavior. I can see that the original implementation is removed in the main gruvbox project, so I am not even sure if that is supported anymore. What if you just override the Normal group in your config. Will that work?

require("gruvbox").setup({
   overrides = {
       Normal = {},
   }
})
vim.cmd("colorscheme gruvbox")

I tried this but it didn't work.

Sife-ops avatar Jul 17 '22 11:07 Sife-ops

https://github.com/ellisonleao/gruvbox.nvim/issues/107#issuecomment-1101352293

You need to set guibg and ctermbg of Normal to NONE after colorscheme gruvbox

vim.cmd("colorscheme gruvbox")
vim.api.nvim_set_hl(0, "Normal", {guibg = NONE, ctermbg = NONE})

eeeXun avatar Jul 20 '22 04:07 eeeXun

Closing this since i am not trying to add support for this right now

ellisonleao avatar Sep 12 '22 15:09 ellisonleao