Add source:is_available API

This commit is contained in:
hrsh7th
2021-08-11 21:37:55 +09:00
parent 5200927346
commit ab616ffe88
3 changed files with 17 additions and 1 deletions

View File

@@ -156,6 +156,12 @@ source.new = function()
return self
end
---Return the source is available or not.
---@return boolean
function source:is_available()
return true
end
---Return keyword pattern which will be used...
--- 1. Trigger keyword completion
--- 2. Detect menu start offset