Quicker and project specific settings
This commit is contained in:
34
lua/plugins/quicker.lua
Normal file
34
lua/plugins/quicker.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
vim.keymap.set("n", "<leader>q", function()
|
||||
require("quicker").toggle()
|
||||
end, { desc = "Toggle quickfix" })
|
||||
vim.keymap.set("n", "<leader>l", function()
|
||||
require("quicker").toggle({ loclist = true })
|
||||
end, { desc = "Toggle loclist" })
|
||||
|
||||
return {
|
||||
'stevearc/quicker.nvim',
|
||||
ft = 'qf',
|
||||
---@module "quicker"
|
||||
---@type quicker.SetupOptions
|
||||
opts = {},
|
||||
config = function()
|
||||
require('quicker').setup({
|
||||
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",
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user