feat: show git log for remote branches (#428)

This commit is contained in:
Simon Hauser
2021-01-15 09:27:46 +01:00
committed by GitHub
parent 5701255097
commit e08a5b1331
6 changed files with 65 additions and 71 deletions

View File

@@ -403,17 +403,12 @@ internal.help_tags = function(opts)
end
internal.man_pages = function(opts)
local pages = utils.get_os_command_output(opts.man_cmd or "apropos --sections=1 ''")
local lines = {}
for s in pages:gmatch("[^\r\n]+") do
table.insert(lines, s)
end
local pages = utils.get_os_command_output(opts.man_cmd or { 'apropos', '--sections=1', '' })
pickers.new(opts, {
prompt_title = 'Man',
finder = finders.new_table {
results = lines,
results = pages,
entry_maker = opts.entry_maker or make_entry.gen_from_apropos(opts),
},
previewer = previewers.man.new(opts),