xiyaowong / transparent.nvim

Remove all background colors to make nvim transparent
806 stars 23 forks source link

Black pop-ups appear on buffer save or on lsp events #54

Closed nickitat closed 10 months ago

nickitat commented 10 months ago

Hi! First of all thanks for the awesome plugin!

I have only one place when transparency is still missing:

Screenshot 2023-10-16 at 12 29 25

I tried searching through highlights and manually adding all highlight groups that appear in this black rectangle to extra_groups, but either I failed to find the right one or it is not discoverable this way.

My setup:

-- Transparent everything
require("transparent").setup({
  groups = {
    "Comment",
    "Conditional",
    "Constant",
    "CursorLineNr",
    "EndOfBuffer",
    "Function",
    "Identifier",
    "LineNr",
    "NonText",
    "Normal",
    "NormalNC",
    "Operator",
    "PreProc",
    "Repeat",
    "SignColumn",
    "Special",
    "Statement",
    "String",
    "Structure",
    "Todo",
    "Type",
    "Underlined",
  },
  extra_groups = {
    "NormalFloat", -- plugins which have float panel such as Lazy, Mason, LspInfo
    "FloatBorder",
    "FloatShadow",
    "FloatShadowThrough",
    --"Folded",
    "NormalContrast",
    "NvimTreeNormal", -- NvimTree
    "TreesitterContext",
    "TreesitterContextLineNumber",
    --"Visual",
    --"VisualNOS"
  },
  exclude_groups = {},
})
require('transparent').clear_prefix('lualine')
xiyaowong commented 10 months ago

You should set :winblend for floating windows

nickitat commented 10 months ago

I tried to set :winblend = {0, 50, 100} - in all cases these black boxes remain unchanged

xiyaowong commented 10 months ago

You need to check if the plugin you are using handles the winblend parameter.

xiyaowong commented 10 months ago

What's the plugin?

nickitat commented 10 months ago

unfortunately I have no idea where this messages coming from. I assume the message that shows up when I save buffer is issued by the vim itself.

nickitat commented 10 months ago

I mean this one:

Screenshot 2023-10-16 at 17 09 59
xiyaowong commented 10 months ago

Maybe j-hui/fidget.nvim ?

nickitat commented 10 months ago

this is one doesn't seem to be installed

nickitat commented 10 months ago

issued by the vim itself.

maybe I'm wrong about this one. on freshly installed LazyVim I don't see these messages. will look closely later

nickitat commented 10 months ago

it is noice. and apparently it supports winblend option, but what I got is still not quite what I wanted )

Screenshot 2023-10-17 at 00 25 45

also as I understood it should use NoiceMini hl group. I tried adding it to the transparent.nvim config - no luck. when I search in highlights for this group it says NoiceMini xxx cterm= gui=links to MsgArea - does it say anything useful to you?

xiyaowong commented 10 months ago

For floating windows, the only way is to set the option winblend. You need to find the window ID of the floating window and then set winblend

nickitat commented 10 months ago

ok, I will try to do it. or just reconfigure noice somehow. thanks for the help.