return { "folke/trouble.nvim", cond = not vim.g.vscode, dependencies = "nvim-tree/nvim-web-devicons", cmd = "TroubleToggle", init = function() vim.keymap.set("n", "xx", "TroubleToggle") vim.keymap.set("n", "xw", "TroubleToggle workspace_diagnostics") vim.keymap.set("n", "xd", "TroubleToggle document_diagnostics") vim.keymap.set("n", "xq", "TroubleToggle quickfix") vim.keymap.set("n", "xl", "TroubleToggle loclist") vim.keymap.set("n", "gR", "TroubleToggle lsp_references") end, config = true, opts = { mode = "workspace_diagnostics", auto_open = false, auto_close = false, auto_preview = true, auto_jump = { "lsp_definitions" }, use_diagnostic_signs = true, }, }