refactor(nvim): use dedicated bind to toggle Trouble

This commit is contained in:
Price Hiller 2024-02-17 17:33:05 -06:00
parent 6e99a380cd
commit bf4bb95721
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -26,17 +26,18 @@ return {
"folke/trouble.nvim",
keys = {
{ "<leader>x", desc = "> Trouble" },
{ "<leader>lr", "<cmd>TroubleToggle lsp_references<cr>", desc = "LSP: References" },
{ "<leader>lr", "<cmd>Trouble lsp_references<cr>", desc = "LSP: References" },
{
"<leader>li",
"<cmd>TroubleToggle lsp_implementations<cr>",
"<cmd>Trouble lsp_implementations<cr>",
desc = "LSP: Implementation",
},
{ "<leader>ld", "<cmd>TroubleToggle lsp_definitions<CR>", desc = "LSP: Definition" },
{ "<leader>xd", "<cmd>TroubleToggle document_diagnostics<cr>", desc = "Trouble: Document Diagnostics" },
{ "<leader>xl", "<cmd>TroubleToggle loclist<cr>", desc = "Trouble: Loclist" },
{ "<leader>xq", "<cmd>TroubleToggle quickfix<cr>", desc = "Trouble: Quickfix" },
{ "<leader>ld", "<cmd>Trouble lsp_definitions<CR>", desc = "LSP: Definition" },
{ "<leader>xd", "<cmd>Trouble document_diagnostics<cr>", desc = "Trouble: Document Diagnostics" },
{ "<leader>xl", "<cmd>Trouble loclist<cr>", desc = "Trouble: Loclist" },
{ "<leader>xq", "<cmd>Trouble quickfix<cr>", desc = "Trouble: Quickfix" },
{ "<leader>xt", "<cmd>TodoTrouble<cr>", desc = "Trouble: Todo Items" },
{ "<leader>xx", "<cmd>TroubleToggle<cr>", desc = "Trouble: Toggle" },
},
event = { "QuickFixCmdPre" },
dependencies = { "nvim-tree/nvim-web-devicons" },