mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-08-16 02:45:09 +00:00
feat(performance): Major performance improvements using async v2 from @oberblastmeister (#987)
* start: Working w/ async jobs * short circuit to using bad finder if you pass writer.
This commit is contained in:
@@ -582,12 +582,22 @@ actions.git_staging_toggle = function(prompt_bufnr)
|
||||
end
|
||||
|
||||
local entry_to_qf = function(entry)
|
||||
local text = entry.text
|
||||
|
||||
if not text then
|
||||
if type(entry.value) == "table" then
|
||||
text = entry.value.text
|
||||
else
|
||||
text = entry.value
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
bufnr = entry.bufnr,
|
||||
filename = from_entry.path(entry, false),
|
||||
lnum = entry.lnum,
|
||||
col = entry.col,
|
||||
text = entry.text or entry.value.text or entry.value,
|
||||
text = text,
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user