From e5155a4aa3a0aa7875e8f0627e1c2ad00e52a4fe Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Thu, 17 Dec 2020 16:58:48 +0100 Subject: Fix builtin.builtin again and add TelescopePreviewMatch hlgroup (#342) --- lua/telescope/builtin/internal.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lua/telescope/builtin/internal.lua') diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua index ca3b86f..7132bad 100644 --- a/lua/telescope/builtin/internal.lua +++ b/lua/telescope/builtin/internal.lua @@ -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), -- cgit v1.2.3