add plugin trouble

This commit is contained in:
leafee98 2023-12-15 13:32:55 +08:00
parent f0879dd3dd
commit 22b8eb3178

View file

@ -101,4 +101,18 @@ return {
{ "gq", vim.diagnostic.setloclist, mode = "n" } { "gq", vim.diagnostic.setloclist, mode = "n" }
}, },
}, },
{
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
event = "VeryLazy",
keys = {
{ "<leader>xx", "<cmd>TroubleToggle<cr>", mode = "n" },
{ "<leader>xw", "<cmd>TroubleToggle workspace_diagnostics<cr>", mode = "n" },
{ "<leader>xd", "<cmd>TroubleToggle document_diagnostics<cr>", mode = "n" },
{ "<leader>xq", "<cmd>TroubleToggle quickfix<cr>", mode = "n" },
{ "<leader>xl", "<cmd>TroubleToggle loclist<cr>", mode = "n" },
{ "<leader>xr", "<cmd>TroubleToggle lsp_references<cr>", mode = "n" },
},
opts = { },
},
} }