This commit is contained in:
hrsh7th
2021-12-14 22:41:45 +09:00
parent 91b6f503c1
commit da4c071f6b
5 changed files with 46 additions and 27 deletions

View File

@@ -55,8 +55,8 @@ end
---@param option cmp.CompleteParams
cmp.complete = function(option)
option = option or {}
cmp.core:complete(cmp.core:get_context({ reason = option.reason or cmp.ContextReason.Manual }), option.sources)
config.set_onetime(option.config)
cmp.core:complete(cmp.core:get_context({ reason = option.reason or cmp.ContextReason.Manual }))
return true
end