sainnhe / gruvbox-material

Gruvbox with Material Palette
MIT License
1.96k stars 166 forks source link

Does not respect the transparent background in nvimtree. Only the background of contents are tranparent #180

Closed BIBJAW closed 1 year ago

BIBJAW commented 1 year ago

I have done the following steps before reporting this issue:

Operating system/version

Arch Linux

Terminal emulator/version

alacritty 0.12.0 (5a728195)

$TERM environment variable

alacritty

Tmux version

No response

Feature matrix

==============================================================================
lazy: require("lazy.health").check()

lazy.nvim ~
- OK Git installed
- OK no existing packages found by other package managers
- OK packer_compiled.lua not found

==============================================================================
lspsaga: require("lspsaga.health").check()

Lspsaga.nvim report ~
- OK `tree-sitter` found 
- OK tree-sitter `markdown` parser found
- OK tree-sitter `markdown_inline` parser found

==============================================================================
mason: require("mason.health").check()

mason.nvim ~
- OK mason.nvim version v1.0.1
- OK PATH: prepend
- OK Providers: 
  mason.providers.registry-api
  mason.providers.client
- OK neovim version >= 0.7.0

mason.nvim [Registries] ~
- OK Registry `github.com/mason-org/mason-registry version: 2023-05-17-fit-way` is installed.

mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send`
- OK wget: `GNU Wget 1.21.3 built on linux-gnu.`
- OK curl: `curl 8.0.1 (x86_64-pc-linux-gnu) libcurl/8.0.1 OpenSSL/3.0.8 zlib/1.2.13 brotli/1.0.9 zstd/1.5.5 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.10.0 nghttp2/1.53.0`
- OK gzip: `gzip 1.12`
- OK tar: `tar (GNU tar) 1.34`
- OK bash: `GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)`
- OK sh: `Ok`

mason.nvim [Languages] ~
- WARNING Go: not available
  - ADVICE:
    - spawn: go failed with exit code - and signal -. go is not executable
- WARNING Composer: not available
  - ADVICE:
    - spawn: composer failed with exit code - and signal -. composer is not executable
- WARNING PHP: not available
  - AD

Minimal vimrc that can reproduce this bug.

require("transparent").setup({
    groups = { -- table: default groups
        "Normal",
        "NormalNC",
        "Comment",
        "Constant",
        "Special",
        "Identifier",
        "Statement",
        "PreProc",
        "Type",
        "Underlined",
        "Todo",
        "String",
        "Function",
        "Conditional",
        "Repeat",
        "Operator",
        "Structure",
        "LineNr",
        "NonText",
        "SignColumn",
        "CursorLineNr",
        "EndOfBuffer",
    },
    extra_groups = {
        "NormalFloat", -- plugins which have float panel such as Lazy, Mason, LspInfo
        "FloatBorder",
        "NvimTreeWinSeparator",
        "NvimTreeNormal",
        "NvimTreeNormalNC",
        "TroubleNormal",
        "TelescopeNormal",
        "TelescopeBorder",
        "WhichKeyFloat",

        -- TODO: programmatically add this
        "NotifyINFOBody",
        "NotifyERRORBody",
        "NotifyWARNBody",
        "NotifyDEBUGBody",
        "NotifyTRACEBody",
        "NotifyINFOBorder",
        "NotifyERRORBorder",
        "NotifyWARNBorder",
        "NotifyDEBUGBorder",
        "NotifyTRACEBorder",
    }, -- table: additional groups that should be cleared
    exclude_groups = {}, -- table: groups you don't want to clear
})

Steps to reproduce this bug using minimal vimrc

vim.o.background = "dark" 
vim.cmd([[colorscheme gruvbox-material]])

Expected behavior

This is how it looks with Gruvbox

Normal

Actual behavior

This one is with gruvobx-material

material

sainnhe commented 1 year ago

Sorry for late reply, I'm so busy recently :(

What is the plugin used in require("transparent").setup() ? Transparent background works nicely on my machine without these settings.

antoineco commented 1 year ago

Closing due to inactivity. Feel free to reopen.