From 6970d50fb43aef5c277bcf54e8ba7bd3b1ef53f9 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 13 Jan 2025 23:18:58 +0100 Subject: [PATCH] feat(snacks): added trouble picker action --- .../plugins/extras/editor/snacks_picker.lua | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lua/lazyvim/plugins/extras/editor/snacks_picker.lua b/lua/lazyvim/plugins/extras/editor/snacks_picker.lua index e58206c7..435ec2ef 100644 --- a/lua/lazyvim/plugins/extras/editor/snacks_picker.lua +++ b/lua/lazyvim/plugins/extras/editor/snacks_picker.lua @@ -71,6 +71,28 @@ return { { "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 = { + [""] = { + "trouble_open", + mode = { "n", "i" }, + }, + }, + }, + }, + }, + }) + end + end, + }, { "neovim/nvim-lspconfig", opts = function()