craftzdog / solarized-osaka.nvim

🏯 A clean, dark Neovim theme written in Lua, with support for lsp, treesitter and lots of plugins.
Apache License 2.0
650 stars 29 forks source link

highlight group for nvim-bqf preview window #15

Closed gennaro-tedesco closed 7 months ago

gennaro-tedesco commented 7 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

NVIM v0.10.0-dev-2048+g367e52cc7-Homebrew

Operating system/version

MacOs Venture 13.6.1

Describe the bug

I am using nvim-bqf and have troubles rendering the preview window background highlight with the same background colour as the normal buffer. In particular, the window colour seems to default to a darker shade as in the screenshot below:

Screenshot 2024-01-29 at 15 45 41

I have checked the definitions of the theme colour highlight groups but I cannot seem to find the correct one that applies to it (I tried BufferAlternate/BufferInactive and so forth).

To reproduce I am using the following configuration

{
"craftzdog/solarized-osaka.nvim",
lazy = false,
priority = 1000,
opts = {
    transparent = true,
    styles = {
        keywords = { italic = false },
        sidebars = "transparent",
        floats = "transparent",
    },
},
init = function()
    vim.cmd([[colorscheme solarized-osaka]])
end,
}

What is the specific highlight group to modify in this case?

P. S. I have tried changing sidebars/floats option values to no avail.

Steps To Reproduce

  1. use the configuration provided above
  2. open the quickfix window
  3. colours default to a darker shade than the normal buffer

Expected Behavior

The background colour of the nvim-bqf preview window is as the normal buffer.

Repro

No response

TinusgragLin commented 7 months ago

I haven't tried nvim-bqf. However when I was using fidget.nvim with transparent background colorschemes, I also noticed that the notification window of fidget.nvim turns black, after some digging, I found that there is an option winblend for a float window and setting it to 0 solves the problem. In my case, fidget.nvim does have an option to set the default winblend for all notification windows it create, and after a quick check, nvim-bqf has it as well. @gennaro-tedesco Can you try to set it to 0 to see whether it solves the problem?

gennaro-tedesco commented 7 months ago

@TinusgragLin You are perfectly right, setting the winblend to 0 does it. Thank you for the hint, we can consider this issue addressed and solved :)