feat: add git_stash picker (#800)

This commit is contained in:
Amirreza Askarpour
2021-05-11 12:50:57 +04:30
committed by GitHub
parent c061c216bf
commit 9fd242db26
7 changed files with 78 additions and 0 deletions

View File

@@ -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 = " ",