require("trouble").setup {} vim.keymap.set("n", "xx", "TroubleToggle", {silent = true, noremap = true} ) vim.keymap.set("n", "xw", "TroubleToggle workspace_diagnostics", {silent = true, noremap = true} ) vim.keymap.set("n", "xd", "TroubleToggle document_diagnostics", {silent = true, noremap = true} ) vim.keymap.set("n", "xl", "TroubleToggle loclist", {silent = true, noremap = true} ) vim.keymap.set("n", "xq", "TroubleToggle quickfix", {silent = true, noremap = true} ) vim.keymap.set("n", "gr", "TroubleToggle lsp_references", {silent = true, noremap = true} )