return { "folke/trouble.nvim", dependencies = { "nvim-tree/nvim-web-devicons" }, event = "CmdlineEnter", ---@type trouble.Config opts = { ---@type trouble.Window.opts win = { type = "split", position = "right" }, auto_close = true, ---@type table modes = { -- sources define their own modes, which you can use directly, -- or override like in the example below lsp_references = { -- some modes are configurable, see the source code for more details params = { include_declaration = true, }, }, }, icons = { indent = { last = "╰╴", -- rounded }, }, }, keys = { { "xl", function() require("trouble").toggle({ mode = "loclist" }) end, desc = "Location List (Trouble)", }, { "xq", function() require("trouble").toggle({ mode = "quickfix" }) end, desc = "Quick fixes (Trouble)", }, { "xr", "Trouble lsp_references toggle", desc = "" }, { "xx", "Trouble diagnostics toggle", desc = "Diagnostics (Trouble)" }, }, }