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,
|
|
|
|
opts = require "config.trouble",
|
2023-02-20 11:09:53 +00:00
|
|
|
}
|