use trouble qf from snacks

This commit is contained in:
iofq 2025-02-03 01:36:08 -06:00
parent 012306d04f
commit 01366c625a
5 changed files with 13 additions and 17 deletions

View file

@ -1,8 +1,9 @@
return {
{
"folke/snacks.nvim",
priority = 1000,
dependencies = { "folke/trouble.nvim" },
lazy = false,
priority = 1000,
opts = {
bigfile = { enabled = true },
notifier = { enabled = true },
@ -19,10 +20,17 @@ return {
return vim.o.columns >= 120 and "telescope" or "vertical"
end
},
actions = {
trouble_open = function(...)
return require("trouble.sources.snacks").actions.trouble_open.action(...)
end,
},
win = {
input = {
keys = {
["wq"] = { "close", mode = "i" },
["<c-t>"] = { "trouble_open", mode = { "n", "i" },
},
}
},
list = {
@ -44,7 +52,7 @@ return {
{
'<leader>ff',
function() Snacks.picker.smart() end,
{ noremap = true, silent = true, desc = 'Fuzzy find git files' }
{ noremap = true, silent = true, desc = 'Fuzzy find files' }
},
{
'<leader>fa',