diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2021-01-15 09:27:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-15 09:27:46 +0100 |
| commit | e08a5b13312495fe6534b0c9b89cc0ffe06b7079 (patch) | |
| tree | 87f56389eb3af4a411ef119d643b84815f4b4acf /lua/telescope/builtin/internal.lua | |
| parent | 57012550977679925176819345adc4d0dce85a00 (diff) | |
feat: show git log for remote branches (#428)
Diffstat (limited to 'lua/telescope/builtin/internal.lua')
| -rw-r--r-- | lua/telescope/builtin/internal.lua | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua index bc23b69..434ae78 100644 --- a/lua/telescope/builtin/internal.lua +++ b/lua/telescope/builtin/internal.lua @@ -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), |
