Skip to content

Commit

Permalink
feat(debugging): add quicker.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Aug 8, 2024
1 parent 3c72999 commit 820ba36
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/debugging/quicker-nvim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# quicker.nvim

Improved UI and workflow for the Neovim quickfix

**Repository:** <https://github.com/stevearc/quicker.nvim>
43 changes: 43 additions & 0 deletions lua/astrocommunity/debugging/quicker-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
return {
"stevearc/quicker.nvim",
ft = "qf",
specs = {
{
"AstroNvim/astrocore",
---@type AstroCoreOpts
opts = {
options = {
opt = {
-- allow lazy loading on quickfix opening
quickfixtextfunc = "v:lua.require'quicker.display'.quickfixtextfunc",
},
},
mappings = {
n = {
["<Leader>xq"] = { function() require("quicker").toggle { focus = true } end, desc = "Toggle quickfix" },
["<Leader>xl"] = {
function() require("quicker").toggle { focus = true, loclist = true } end,
desc = "Toggle loclist",
},
},
},
},
},
},
---@module "quicker"
---@type quicker.SetupOptions
opts = {
keys = {
{
">",
function() require("quicker").expand { before = 2, after = 2, add_to_existing = true } end,
desc = "Expand quickfix context",
},
{
"<",
function() require("quicker").collapse() end,
desc = "Collapse quickfix context",
},
},
},
}

0 comments on commit 820ba36

Please sign in to comment.