summaryrefslogtreecommitdiff
path: root/lua/telescope/builtin/internal.lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2020-12-17 16:58:48 +0100
committerGitHub <noreply@github.com>2020-12-17 16:58:48 +0100
commite5155a4aa3a0aa7875e8f0627e1c2ad00e52a4fe (patch)
tree267761573d789ee93ec08172a92a1da48bccf7d9 /lua/telescope/builtin/internal.lua
parentf078d149a1cfb9e98d9be400b6660dbaa6a58ce9 (diff)
Fix builtin.builtin again and add TelescopePreviewMatch hlgroup (#342)
Diffstat (limited to 'lua/telescope/builtin/internal.lua')
-rw-r--r--lua/telescope/builtin/internal.lua10
1 files changed, 9 insertions, 1 deletions
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),