Improve sync API

This commit is contained in:
hrsh7th
2022-01-31 14:30:57 +09:00
parent 0d23640fb6
commit 55f04e49dc

View File

@@ -33,8 +33,10 @@ cmp.mapping = require('cmp.config.mapping')
cmp.sync = function(callback)
return function(...)
cmp.core.filter:sync(1000)
if callback then
return callback(...)
end
end
end
---Suspend completion.