fix(compe): gather candidates asynchronously

This commit is contained in:
Rainer Borene
2021-03-15 12:36:55 -03:00
committed by GitHub
parent fe42bd982f
commit b9e9bd505d

View File

@@ -14,9 +14,9 @@ function Source.determine(_, context)
end
function Source.complete(_, context)
local items = vim.fn["tmuxcomplete#complete"](0, context.input)
context.callback({ items = items })
vim.fn["tmuxcomplete#async#gather_candidates"](function (items)
context.callback({ items = items })
end)
end
return Source