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.45k stars 177 forks source link

bug: list not properly formatted with the theme #381

Closed steakhutzeee closed 7 months ago

steakhutzeee commented 7 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.9.5

Operating system/version

WSL 2

Describe the bug

Hi,

i'm experiencing the same as in https://github.com/folke/trouble.nvim/issues/345

Looks like the list is not properly formatted with theme. How can we fix this?

Screenshot attached.

Steps To Reproduce

Use any other theme rather than tokyonight.

Expected Behavior

The list to be displayed correctly.

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
winter-again commented 7 months ago

I think you have to add the missing highlight groups to whatever colorscheme you're using. Tokyonight already has them.