feat/hack: Add builtin.builtin

This commit is contained in:
TJ DeVries
2020-09-01 22:27:50 -04:00
parent c11a661362
commit 39096492ab
4 changed files with 47 additions and 10 deletions

View File

@@ -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