Fix builtin.builtin again and add TelescopePreviewMatch hlgroup (#342)

This commit is contained in:
Simon Hauser
2020-12-17 16:58:48 +01:00
committed by GitHub
parent f078d149a1
commit e5155a4aa3
3 changed files with 16 additions and 6 deletions

View File

@@ -34,7 +34,15 @@ internal.builtin = function(opts)
prompt_title = 'Telescope Builtin',
finder = finders.new_table {
results = objs,
entry_maker = make_entry.gen_from_quickfix(opts),
entry_maker = function(entry)
return {
value = entry,
text = entry.text,
display = entry.text,
ordinal = entry.text,
filename = entry.filename,
}
end
},
previewer = previewers.builtin.new(opts),
sorter = conf.generic_sorter(opts),