neovim/lua/plugins/trouble.lua
2025-03-10 21:17:43 +01:00

17 lines
477 B
Lua

return {
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
opts = {},
keys = {
{
"<leader>xl",
function()
require("trouble").open({ mode = "loclist" })
end,
desc = "Location List (Trouble)",
},
{ "<leader>xq", "<cmd>Trouble quickfix toggle<cr>", desc = "" },
{ "<leader>xr", "<cmd>Trouble lsp_references toggle<cr>", desc = "" },
{ "<leader>xx", "<cmd>Trouble diagnostics toggle<cr>", desc = "Diagnostics (Trouble)" },
},
}