diff options
| author | Cedric M'Passi <cempassi@student.42.fr> | 2021-01-04 23:04:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-04 23:04:58 +0100 |
| commit | 9503603f888305ec799c9346f51a6e3da7f5b89b (patch) | |
| tree | 2831b855a769249c0befcb390d49b243f87e5fc3 /lua/telescope/builtin/git.lua | |
| parent | 313ce9d0b6fb3bdb5ee07af60ee8840bdd4fbf73 (diff) | |
feat: Add highlight to builtin.git_status (#388)
Diffstat (limited to 'lua/telescope/builtin/git.lua')
| -rw-r--r-- | lua/telescope/builtin/git.lua | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lua/telescope/builtin/git.lua b/lua/telescope/builtin/git.lua index df88c4d..309f6e2 100644 --- a/lua/telescope/builtin/git.lua +++ b/lua/telescope/builtin/git.lua @@ -117,16 +117,7 @@ git.status = function(opts) prompt_title = 'Git Status', finder = finders.new_table { results = vim.split(output, '\n'), - entry_maker = function(entry) - if entry == '' then return nil end - local mod, file = string.match(entry, '(..).*%s[->%s]?(.+)') - return { - value = file, - status = mod, - ordinal = entry, - display = entry, - } - end + entry_maker = make_entry.gen_from_git_status(opts) }, previewer = previewers.git_file_diff.new(opts), sorter = conf.file_sorter(opts), |
