2022-10-05 18:50:22 +02:00
|
|
|
require("trouble").setup {}
|
2022-09-12 20:04:17 +02:00
|
|
|
|
|
|
|
vim.keymap.set("n", "<leader>xx", "<cmd>TroubleToggle<cr>",
|
|
|
|
{silent = true, noremap = true}
|
|
|
|
)
|
|
|
|
vim.keymap.set("n", "<leader>xw", "<cmd>TroubleToggle workspace_diagnostics<cr>",
|
|
|
|
{silent = true, noremap = true}
|
|
|
|
)
|
|
|
|
vim.keymap.set("n", "<leader>xd", "<cmd>TroubleToggle document_diagnostics<cr>",
|
|
|
|
{silent = true, noremap = true}
|
|
|
|
)
|
|
|
|
vim.keymap.set("n", "<leader>xl", "<cmd>TroubleToggle loclist<cr>",
|
|
|
|
{silent = true, noremap = true}
|
|
|
|
)
|
|
|
|
vim.keymap.set("n", "<leader>xq", "<cmd>TroubleToggle quickfix<cr>",
|
|
|
|
{silent = true, noremap = true}
|
|
|
|
)
|
|
|
|
vim.keymap.set("n", "gr", "<cmd>TroubleToggle lsp_references<cr>",
|
|
|
|
{silent = true, noremap = true}
|
|
|
|
)
|