fix: describe reports init and config correctly
parent
85fa8f4d1f
commit
24b7227e6f
|
|
@ -16,8 +16,8 @@ local function describe(dep)
|
||||||
utils.info('Name: %s', dep.name)
|
utils.info('Name: %s', dep.name)
|
||||||
utils.info('Is loaded: %s', yesno(dep.is_loaded))
|
utils.info('Is loaded: %s', yesno(dep.is_loaded))
|
||||||
utils.info('Is lazy: %s', yesno(dep.is_lazy))
|
utils.info('Is lazy: %s', yesno(dep.is_lazy))
|
||||||
utils.info('Has init: %s', yesno(dep.init))
|
utils.info('Has init: %s', yesno(dep.has_init))
|
||||||
utils.info('Has config: %s', yesno(dep.config))
|
utils.info('Has config: %s', yesno(dep.has_config))
|
||||||
utils.info('Dependencies: %s', list(dep.dependency_names))
|
utils.info('Dependencies: %s', list(dep.dependency_names))
|
||||||
utils.info('Filetypes: %s', list(dep.ft))
|
utils.info('Filetypes: %s', list(dep.ft))
|
||||||
utils.info('Commands: %s', list(dep.cmd))
|
utils.info('Commands: %s', list(dep.cmd))
|
||||||
|
|
|
||||||
|
|
@ -131,6 +131,14 @@ function M:get_is_loaded()
|
||||||
return self.state >= State.Loaded
|
return self.state >= State.Loaded
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function M:get_has_init()
|
||||||
|
return not not self.values.init
|
||||||
|
end
|
||||||
|
|
||||||
|
function M:get_has_config()
|
||||||
|
return not not self.values.config
|
||||||
|
end
|
||||||
|
|
||||||
function M:get_has_events()
|
function M:get_has_events()
|
||||||
return self.ft or self.events
|
return self.ft or self.events
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue