RFC: CmpStatus command (#210)

* Add `CmpStatus` command

* Update headings

* Fix heading

* Update headings

* Add README.md

* Fix tests

* Force invoke InsertEnter
This commit is contained in:
hrsh7th
2021-09-17 13:29:28 +09:00
committed by GitHub
parent 620eea94d3
commit b47a703a48
5 changed files with 79 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ end
---Return source option
---@return cmp.SourceConfig
source.get_config = function(self)
return config.get_source_config(self.name)
return config.get_source_config(self.name) or {}
end
---Get fetching time
@@ -175,7 +175,7 @@ source.get_debug_name = function(self)
if self.source.get_debug_name then
name = self.source:get_debug_name()
end
return name .. '(' .. self.id .. ')'
return name
end
---Return the source is available or not.