Fix snack picker breaking change

This commit is contained in:
2025-11-14 23:13:31 +01:00
parent 9aec0768ae
commit 34faa25d3a

View File

@@ -1,9 +1,9 @@
local function git_show(ref)
local git_root = Snacks.git.get_root()
local function finder(opts, ctx)
return require("snacks.picker.source.proc").proc({
opts,
{
---@type snacks.picker.finder
local function finder(_opts, ctx)
return require("snacks.picker.source.proc").proc(
ctx:opts({
cmd = "git",
args = { "show", "--name-status", "--pretty=tformat:", ref },
cwd = Snacks.git.get_root(),
@@ -12,8 +12,9 @@ local function git_show(ref)
item.file = string.sub(item.text, 3)
item.commit = ref
end,
},
}, ctx)
}),
ctx
)
end
Snacks.picker.pick({