diff --git a/lua/lazyvim/config/keymaps.lua b/lua/lazyvim/config/keymaps.lua index b4d868eb..24ff4d23 100644 --- a/lua/lazyvim/config/keymaps.lua +++ b/lua/lazyvim/config/keymaps.lua @@ -91,13 +91,8 @@ map("n", "l", ":Lazy", { desc = "Lazy" }) -- new file map("n", "fn", "enew", { desc = "New File" }) -if Util.has("trouble.nvim") then - map("n", "xl", "Trouble loclist", { desc = "Open Location List (Trouble)" }) - map("n", "xq", "Trouble quickfix", { desc = "Open Quickfix List (Trouble)" }) -else - map("n", "xl", "lopen", { desc = "Open Location List" }) - map("n", "xq", "copen", { desc = "Open Quickfix List" }) -end +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)" }, }, },