This commit is contained in:
hrsh7th
2021-09-18 00:29:34 +09:00
parent 329f0b784d
commit 97a639a060
2 changed files with 13 additions and 0 deletions

View File

@@ -243,6 +243,10 @@ end
---Invoke completion
---@param ctx cmp.Context
core.complete = function(ctx)
if ctx:invalid() then
return
end
core.set_context(ctx)
local callback = function()
@@ -265,6 +269,9 @@ end
---Update completion menu
core.filter = async.throttle(function()
local ctx = core.get_context()
if ctx:invalid() then
return
end
-- To wait for processing source for that's timeout.
local sources = {}