return { "folke/trouble.nvim", dependencies = { "nvim-tree/nvim-web-devicons" }, opts = {}, config = function() local map = require("helpers.keys").map map("n", "xx", function() require("trouble").open() end, "trouble: open") map("n", "xw", function() require("trouble").open("workspace_diagnostics") end, "trouble: open workspace diagnostics") map("n", "xd", function() require("trouble").open("document_diagnostics") end, "trouble: open document diagnostics") map("n", "xq", function() require("trouble").open("quickfix") end, "trouble: open quickfix") map("n", "xl", function() require("trouble").open("loclist") end, "trouble: open loclist") map("n", "gR", function() require("trouble").open("lsp_references") end, "trouble: open lsp references") end, }