return { "folke/trouble.nvim", cmd = "Trouble", event = "VeryLazy", dependencies = { "nvim-tree/nvim-web-devicons" }, config = function() require("trouble").setup({ modes = { diagnostics = { auto_open = false, auto_close = true, }, }, warn_no_results = false, -- stylua: ignore icons = require("utils.icons").trouble, }) require("utils.remaps").map_virtual({ { "t", group = "trouble", icon = { icon = " ", hl = "Constant" } }, { "ts", group = "symbols", icon = { icon = " ", hl = "Constant" } }, }) end, keys = { { "tt", "Trouble diagnostics toggle", desc = "trouble diagnostics", }, { "tT", "Trouble diagnostics toggle filter.buf=0", desc = "buffer diagnostics", }, { "ts", "Trouble symbols toggle focus=false", desc = "symbols", }, }, }