diff --git a/lua/astrocommunity/debugging/nvim-bqf/README.md b/lua/astrocommunity/debugging/nvim-bqf/README.md index 351813e67..055b5c167 100644 --- a/lua/astrocommunity/debugging/nvim-bqf/README.md +++ b/lua/astrocommunity/debugging/nvim-bqf/README.md @@ -1,5 +1,3 @@ # nvim-bqf -Better quickfix window in Neovim, polish old quickfix window. - -**Repository:** +**DEPRECATED** Use the new location: [`quickfix/nvim-bqf`](/lua/astrocommunity/quickfix/nvim-bqf) diff --git a/lua/astrocommunity/debugging/nvim-bqf/init.lua b/lua/astrocommunity/debugging/nvim-bqf/init.lua index 6c4e07b58..9df86293c 100644 --- a/lua/astrocommunity/debugging/nvim-bqf/init.lua +++ b/lua/astrocommunity/debugging/nvim-bqf/init.lua @@ -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" } diff --git a/lua/astrocommunity/quickfix/nvim-bqf/README.md b/lua/astrocommunity/quickfix/nvim-bqf/README.md new file mode 100644 index 000000000..351813e67 --- /dev/null +++ b/lua/astrocommunity/quickfix/nvim-bqf/README.md @@ -0,0 +1,5 @@ +# nvim-bqf + +Better quickfix window in Neovim, polish old quickfix window. + +**Repository:** diff --git a/lua/astrocommunity/quickfix/nvim-bqf/init.lua b/lua/astrocommunity/quickfix/nvim-bqf/init.lua new file mode 100644 index 000000000..6c4e07b58 --- /dev/null +++ b/lua/astrocommunity/quickfix/nvim-bqf/init.lua @@ -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 = {}, +} diff --git a/lua/astrocommunity/quickfix/quicker-nvim/README.md b/lua/astrocommunity/quickfix/quicker-nvim/README.md new file mode 100644 index 000000000..ebbe1295d --- /dev/null +++ b/lua/astrocommunity/quickfix/quicker-nvim/README.md @@ -0,0 +1,5 @@ +# quicker.nvim + +Improved UI and workflow for the Neovim quickfix + +**Repository:** diff --git a/lua/astrocommunity/quickfix/quicker-nvim/init.lua b/lua/astrocommunity/quickfix/quicker-nvim/init.lua new file mode 100644 index 000000000..d22a5db8e --- /dev/null +++ b/lua/astrocommunity/quickfix/quicker-nvim/init.lua @@ -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 = { + ["xq"] = { function() require("quicker").toggle { focus = true } end, desc = "Toggle quickfix" }, + ["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", + }, + }, + }, +}