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 v3: diagnostic icon can not display #407

Closed a1401358759 closed 5 months ago

a1401358759 commented 6 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

NVIM v0.10.0-dev-2755+ge1ff2c51c

Operating system/version

archlinux 6.8.1-arch1-1

Describe the bug

diagnostic icon can not display

image

Steps To Reproduce

no

Expected Behavior

no

Repro

this is my config

return {
  "folke/trouble.nvim",
  lazy = true,
  branch = "dev", -- IMPORTANT!
  cmd = { "Trouble", "TroubleToggle", "TroubleRefresh" },
  keys = {
    {
      "<leader>xx",
      "<cmd>Trouble diagnostics toggle<cr>",
      desc = "Diagnostics (Trouble)",
    },
    {
      "<leader>xX",
      "<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
      desc = "Buffer Diagnostics (Trouble)",
    },
    {
      "<leader>cs",
      "<cmd>Trouble symbols toggle focus=false<cr>",
      desc = "Symbols (Trouble)",
    },
    {
      "<leader>cS",
      "<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
      desc = "LSP references/definitions/... (Trouble)",
    },
    {
      "<leader>xL",
      "<cmd>Trouble loclist toggle<cr>",
      desc = "Location List (Trouble)",
    },
    {
      "<leader>xQ",
      "<cmd>Trouble qflist toggle<cr>",
      desc = "Quickfix List (Trouble)",
    },
  },
}
tummetott commented 6 months ago

Trouble v3 is only installed if you pick the "dev" branch

a1401358759 commented 6 months ago

@tummetott image

this is my config

tummetott commented 6 months ago

Ah ok sorry. The purpose of the repro section in the issue is to give a minimal config so people can reproduce your problem. Maybe you can update that and provide your config there?

a1401358759 commented 5 months ago

Ah sorry. it's my fault!