feat: allow initial results in async_oneshot_finder (#1461)

This commit is contained in:
fdschmidt93
2021-12-03 15:36:48 +01:00
committed by GitHub
parent 0c819d6605
commit 9d7d322f85

View File

@@ -13,8 +13,8 @@ return function(opts)
local cwd = opts.cwd
local fn_command = assert(opts.fn_command, "Must pass `fn_command`")
local results = {}
local num_results = 0
local results = vim.F.if_nil(opts.results, {})
local num_results = #results
local job_started = false
local job_completed = false