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

@@ -65,6 +65,12 @@ context.new = function(prev_context, option)
return self
end
---Return the context is invalid or not.
---@return boolean
context.invalid = function(self)
return string.sub(self.mode, 1, 1) ~= 'i'
end
---Return context creation reason.
---@return cmp.ContextReason
context.get_reason = function(self)