diff options
| author | Amirreza Askarpour <raskarpour@gmail.com> | 2021-05-11 12:50:57 +0430 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-11 10:20:57 +0200 |
| commit | 9fd242db260a63d8b788d1edbabd2d76a55a2d61 (patch) | |
| tree | 82a47db9b567a0be1acfb3ccee129b1ff53e0e6a /lua/telescope/make_entry.lua | |
| parent | c061c216bfe082384d542a487ce02e9aed6177df (diff) | |
feat: add git_stash picker (#800)
Diffstat (limited to 'lua/telescope/make_entry.lua')
| -rw-r--r-- | lua/telescope/make_entry.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua index 9435354..39106e0 100644 --- a/lua/telescope/make_entry.lua +++ b/lua/telescope/make_entry.lua @@ -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 = " ", |
