2022-10-06 04:44:41 +00:00
|
|
|
vim.keymap.set('n', '<leader>xx', '<cmd>TroubleToggle<cr>',
|
2023-12-01 20:26:00 +00:00
|
|
|
{ silent = true, noremap = true, desc = "Toggle trouble buffer diagnostics" }
|
2022-10-06 04:44:41 +00:00
|
|
|
)
|
|
|
|
vim.keymap.set('n', '<leader>xw', '<cmd>TroubleToggle workspace_diagnostics<cr>',
|
2023-12-01 20:26:00 +00:00
|
|
|
{ silent = true, noremap = true, desc = "Toggle trouble workspace diagnostics" }
|
2022-10-06 04:44:41 +00:00
|
|
|
)
|
|
|
|
vim.keymap.set('n', '<leader>xd', '<cmd>TroubleToggle document_diagnostics<cr>',
|
2023-12-01 20:26:00 +00:00
|
|
|
{ silent = true, noremap = true, desc = "Toggle trouble document diagnostics" }
|
2022-10-06 04:44:41 +00:00
|
|
|
)
|
|
|
|
vim.keymap.set('n', '<leader>xl', '<cmd>TroubleToggle loclist<cr>',
|
2023-12-01 20:26:00 +00:00
|
|
|
{ silent = true, noremap = true, desc = "Toggle trouble diagnostics in loclist" }
|
2022-10-06 04:44:41 +00:00
|
|
|
)
|
|
|
|
vim.keymap.set('n', '<leader>xq', '<cmd>TroubleToggle quickfix<cr>',
|
2023-12-01 20:26:00 +00:00
|
|
|
{ silent = true, noremap = true, desc = "Toggle trouble diagnostics in quickfix" }
|
2022-10-06 04:44:41 +00:00
|
|
|
)
|
|
|
|
vim.keymap.set('n', 'gR', '<cmd>TroubleToggle lsp_references<cr>',
|
2023-12-01 20:26:00 +00:00
|
|
|
{ silent = true, noremap = true, desc = "Toggle trouble LSP [R]eferences under cursor" }
|
2022-10-06 04:44:41 +00:00
|
|
|
)
|