feat: all entry_makers are now overridable and icons for builtin.buffers (#364)

This commit is contained in:
tamago324
2020-12-28 01:15:52 +09:00
committed by GitHub
parent 3e884e863a
commit e555cd375f
5 changed files with 46 additions and 17 deletions

View File

@@ -35,7 +35,7 @@ git.commits = function(opts)
prompt_title = 'Git Commits',
finder = finders.new_table {
results = results,
entry_maker = make_entry.gen_from_git_commits(opts),
entry_maker = opts.entry_maker or make_entry.gen_from_git_commits(opts),
},
previewer = previewers.git_commit_diff.new(opts),
sorter = conf.file_sorter(opts),
@@ -54,7 +54,7 @@ git.bcommits = function(opts)
prompt_title = 'Git BCommits',
finder = finders.new_table {
results = results,
entry_maker = make_entry.gen_from_git_commits(opts),
entry_maker = opts.entry_maker or make_entry.gen_from_git_commits(opts),
},
previewer = previewers.git_commit_diff.new(opts),
sorter = conf.file_sorter(opts),