feat: add git_stash picker (#800)
This commit is contained in:
committed by
GitHub
parent
c061c216bf
commit
9fd242db26
@@ -240,6 +240,21 @@ do
|
||||
end
|
||||
end
|
||||
|
||||
function make_entry.gen_from_git_stash()
|
||||
return function(entry)
|
||||
if entry == "" then
|
||||
return nil
|
||||
end
|
||||
local splitted = vim.split(entry, ':')
|
||||
return {
|
||||
value = splitted[1],
|
||||
ordinal = splitted[3],
|
||||
display = splitted[3]
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function make_entry.gen_from_git_commits()
|
||||
local displayer = entry_display.create {
|
||||
separator = " ",
|
||||
|
||||
Reference in New Issue
Block a user