Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(debugging): add quicker.nvim #1146

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lua/astrocommunity/debugging/nvim-bqf/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# nvim-bqf

Better quickfix window in Neovim, polish old quickfix window.

**Repository:** <https://github.com/kevinhwang91/nvim-bqf>
**DEPRECATED** Use the new location: [`quickfix/nvim-bqf`](/lua/astrocommunity/quickfix/nvim-bqf)
18 changes: 5 additions & 13 deletions lua/astrocommunity/debugging/nvim-bqf/init.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
return {
"kevinhwang91/nvim-bqf",
ft = "qf",
dependencies = {
"AstroNvim/astrocore",
---@param opts AstroCoreOpts
opts = function(_, opts)
if not opts.signs then opts.signs = {} end
opts.signs.BqfSign = { text = " " .. require("astroui").get_icon "Selected", texthl = "BqfSign" }
end,
},
opts = {},
}
vim.notify(
"**DEPRECATED** astrocommunity.debugging.nvim-bqf\n\nPlease use new location:\n`astrocommunity.quickfix.nvim-bqf`",
vim.log.levels.ERROR
)
return { import = "astrocommunity.quickfix.nvim-bqf" }
5 changes: 5 additions & 0 deletions lua/astrocommunity/quickfix/nvim-bqf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# nvim-bqf

Better quickfix window in Neovim, polish old quickfix window.

**Repository:** <https://github.com/kevinhwang91/nvim-bqf>
13 changes: 13 additions & 0 deletions lua/astrocommunity/quickfix/nvim-bqf/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
return {
"kevinhwang91/nvim-bqf",
ft = "qf",
dependencies = {
"AstroNvim/astrocore",
---@param opts AstroCoreOpts
opts = function(_, opts)
if not opts.signs then opts.signs = {} end
opts.signs.BqfSign = { text = " " .. require("astroui").get_icon "Selected", texthl = "BqfSign" }
end,
},
opts = {},
}
5 changes: 5 additions & 0 deletions lua/astrocommunity/quickfix/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/quickfix/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",
},
},
},
}
Loading