mirror of
https://github.com/wellle/tmux-complete.vim.git
synced 2025-12-16 12:00:09 +01:00
fix(compe): gather candidates asynchronously
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user