Add is_insert_mode utility

This commit is contained in:
hrsh7th
2021-09-30 21:06:32 +09:00
parent a63a1a23e9
commit af70f40d2e
3 changed files with 12 additions and 9 deletions

View File

@@ -65,12 +65,6 @@ 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)