feat(snacks): added trouble picker action

This commit is contained in:
Folke Lemaitre 2025-01-13 23:18:58 +01:00
parent 726fa2eea8
commit 6970d50fb4
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -71,6 +71,28 @@ return {
{ "<leader>qp", function() Snacks.picker.projects() end },
},
},
{
"folke/snacks.nvim",
opts = function(_, opts)
if LazyVim.has("trouble.nvim") then
return vim.tbl_deep_extend("force", opts or {}, {
picker = {
actions = require("trouble.sources.snacks").actions,
win = {
input = {
keys = {
["<c-t>"] = {
"trouble_open",
mode = { "n", "i" },
},
},
},
},
},
})
end
end,
},
{
"neovim/nvim-lspconfig",
opts = function()