From 39096492aba5e2fe8a8c0bc11a040a90bb95280b Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Tue, 1 Sep 2020 22:27:50 -0400 Subject: feat/hack: Add builtin.builtin --- lua/telescope/utils.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lua/telescope/utils.lua') diff --git a/lua/telescope/utils.lua b/lua/telescope/utils.lua index cd1c20c..030d942 100644 --- a/lua/telescope/utils.lua +++ b/lua/telescope/utils.lua @@ -51,9 +51,9 @@ utils.quickfix_items_to_entries = function(locations) local results = {} for _, entry in ipairs(locations) do - local vimgrep_str = string.format( + local vimgrep_str = entry.vimgrep_str or string.format( "%s:%s:%s: %s", - vim.fn.fnamemodify(entry.filename, ":."), + vim.fn.fnamemodify(entry.display_filename or entry.filename, ":."), entry.lnum, entry.col, entry.text @@ -64,6 +64,9 @@ utils.quickfix_items_to_entries = function(locations) value = entry, ordinal = vimgrep_str, display = vimgrep_str, + + start = entry.start, + finish = entry.finish, }) end -- cgit v1.2.3