Skip to content

Commit

Permalink
fix(trouble_v3): keymap previous is deprecated, use prev instead (L…
Browse files Browse the repository at this point in the history
  • Loading branch information
dpetka2001 authored and konosubakonoakua committed Apr 24, 2024
1 parent 65b9e9e commit 63b999f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lua/lazyvim/plugins/extras/editor/trouble-v3.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ return {
},
{ "<leader>xL", "<cmd>Trouble loclist toggle<cr>", desc = "Location List (Trouble)" },
{ "<leader>xQ", "<cmd>Trouble qflist toggle<cr>", desc = "Quickfix List (Trouble)" },
{
"[q",
function()
if require("trouble").is_open() then
require("trouble").prev({ skip_groups = true, jump = true })
else
local ok, err = pcall(vim.cmd.cprev)
if not ok then
vim.notify(err, vim.log.levels.ERROR)
end
end
end,
desc = "Previous Trouble/Quickfix Item",
},
},
},

Expand Down

0 comments on commit 63b999f

Please sign in to comment.