mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
Fix snack picker breaking change
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user