Skip to content

Commit 8d028f4

Browse files
authored
feat(trouble-nvim): integrate snacks.nvim picker (#1679)
1 parent 26e5704 commit 8d028f4

File tree

1 file changed

+21
-0
lines changed
  • lua/astrocommunity/diagnostics/trouble-nvim

1 file changed

+21
-0
lines changed

lua/astrocommunity/diagnostics/trouble-nvim/init.lua

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,27 @@ return {
5151
table.insert(opts.bottom, "Trouble")
5252
end,
5353
},
54+
{
55+
"folke/snacks.nvim",
56+
optional = true,
57+
opts = function(_, opts)
58+
return vim.tbl_deep_extend("force", opts or {}, {
59+
picker = {
60+
actions = require("trouble.sources.snacks").actions,
61+
win = {
62+
input = {
63+
keys = {
64+
["<c-t>"] = {
65+
"trouble_open",
66+
mode = { "n", "i" },
67+
},
68+
},
69+
},
70+
},
71+
},
72+
})
73+
end,
74+
},
5475
{
5576
"catppuccin",
5677
optional = true,

0 commit comments

Comments
 (0)