vim.keymap.set('n', 'xx', 'TroubleToggle', { silent = true, noremap = true, desc = "Toggle trouble buffer diagnostics" } ) vim.keymap.set('n', 'xw', 'TroubleToggle workspace_diagnostics', { silent = true, noremap = true, desc = "Toggle trouble workspace diagnostics" } ) vim.keymap.set('n', 'xd', 'TroubleToggle document_diagnostics', { silent = true, noremap = true, desc = "Toggle trouble document diagnostics" } ) vim.keymap.set('n', 'xl', 'TroubleToggle loclist', { silent = true, noremap = true, desc = "Toggle trouble diagnostics in loclist" } ) vim.keymap.set('n', 'xq', 'TroubleToggle quickfix', { silent = true, noremap = true, desc = "Toggle trouble diagnostics in quickfix" } ) vim.keymap.set('n', 'gR', 'TroubleToggle lsp_references', { silent = true, noremap = true, desc = "Toggle trouble LSP [R]eferences under cursor" } )