folke / trouble.nvim

🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
Apache License 2.0
5.24k stars 178 forks source link

bug: The list background is displaying without color #345

Closed aabbccddeeffggj closed 9 months ago

aabbccddeeffggj commented 9 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.9.4

Operating system/version

Arch Linux

Describe the bug

The list of errors does not display the in the same way I'm seeing in the screenshots and some videos I went after. The items I select in the gets a part of its background unchanged (stays the same color as when it's not selected). image

Steps To Reproduce

None.

Expected Behavior

Each item selected in the list getting shown with a homogeneous background color.

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  "folke/trouble.nvim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here
aabbccddeeffggj commented 9 months ago

Update: I tested it with multiple colorschemes, catppuccin, nightfox, etc; they didn't work, I thought it wasn't related to the colorscheme then, but now I just tested the theme tokyonight (from the plugins author), and it works normally. I'll get stuck with this theme, seems well structured.