2023-02-20 11:09:53 +00:00
|
|
|
return {
|
|
|
|
"folke/trouble.nvim",
|
|
|
|
dependencies = "nvim-tree/nvim-web-devicons",
|
|
|
|
cmd = "TroubleToggle",
|
2023-05-11 08:51:35 +01:00
|
|
|
init = function()
|
|
|
|
vim.keymap.set("n", "<leader>xx", "<cmd>TroubleToggle<cr>")
|
|
|
|
vim.keymap.set("n", "<leader>xw", "<cmd>TroubleToggle workspace_diagnostics<cr>")
|
|
|
|
vim.keymap.set("n", "<leader>xd", "<cmd>TroubleToggle document_diagnostics<cr>")
|
|
|
|
vim.keymap.set("n", "<leader>xq", "<cmd>TroubleToggle quickfix<cr>")
|
|
|
|
vim.keymap.set("n", "<leader>xl", "<cmd>TroubleToggle loclist<cr>")
|
|
|
|
end,
|
|
|
|
config = true,
|
2023-05-11 10:44:22 +01:00
|
|
|
opts = {
|
|
|
|
mode = "workspace_diagnostics",
|
|
|
|
auto_open = false,
|
|
|
|
auto_close = false,
|
|
|
|
auto_preview = true,
|
|
|
|
auto_jump = { "lsp_definitions", "lsp_references", "lsp_implementations" },
|
|
|
|
},
|
2023-02-20 11:09:53 +00:00
|
|
|
}
|