perf(snacks_picker): lazy-load trouble open action

This commit is contained in:
Folke Lemaitre 2025-02-02 18:03:13 +01:00
parent 3500d6a826
commit 1a4d948e0d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -110,7 +110,11 @@ return {
if LazyVim.has("trouble.nvim") then if LazyVim.has("trouble.nvim") then
return vim.tbl_deep_extend("force", opts or {}, { return vim.tbl_deep_extend("force", opts or {}, {
picker = { picker = {
actions = require("trouble.sources.snacks").actions, actions = {
trouble_open = function(...)
return require("trouble.sources.snacks").actions.trouble_open.action(...)
end,
},
win = { win = {
input = { input = {
keys = { keys = {