From 088914e1dd218f910586c83bdb72fe554c88a6da Mon Sep 17 00:00:00 2001 From: Andreas Gerlach Date: Tue, 7 Feb 2023 21:50:41 +0100 Subject: [PATCH] feat(trouble): keymaps for trouble quicklist / loclist (#171) * use trouble quicklist / loclist if available * feat: added keymaps for loclist and qf list with trouble --------- Co-authored-by: Folke Lemaitre --- lua/lazyvim/config/keymaps.lua | 4 ++-- lua/lazyvim/plugins/editor.lua | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/config/keymaps.lua b/lua/lazyvim/config/keymaps.lua index a89a45c8..11c76ce9 100644 --- a/lua/lazyvim/config/keymaps.lua +++ b/lua/lazyvim/config/keymaps.lua @@ -93,8 +93,8 @@ map("n", "l", ":Lazy", { desc = "Lazy" }) -- new file map("n", "fn", "enew", { desc = "New File" }) -map("n", "xl", "lopen", { desc = "Open Location List" }) -map("n", "xq", "copen", { desc = "Open Quickfix List" }) +map("n", "xl", "lopen", { desc = "Location List" }) +map("n", "xq", "copen", { desc = "Quickfix List" }) -- stylua: ignore start diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index e7352d53..9cb46087 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -262,6 +262,8 @@ return { keys = { { "xx", "TroubleToggle document_diagnostics", desc = "Document Diagnostics (Trouble)" }, { "xX", "TroubleToggle workspace_diagnostics", desc = "Workspace Diagnostics (Trouble)" }, + { "xL", "TroubleToggle loclist", desc = "Location List (Trouble)" }, + { "xQ", "TroubleToggle quickfix", desc = "Quickfix List (Trouble)" }, }, },