feat: deactivate WIP

This commit is contained in:
Folke Lemaitre 2023-02-07 23:52:02 +01:00
parent 49b43def14
commit 57a3960faf
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 97 additions and 14 deletions

View file

@ -19,6 +19,7 @@
---@class LazyPluginHooks
---@field init? fun(self:LazyPlugin) Will always be run
---@field deactivate? fun(self:LazyPlugin) Unload/Stop a plugin
---@field config? fun(self:LazyPlugin, opts:table)|true Will be executed when loading the plugin
---@field build? string|fun(self:LazyPlugin)|(string|fun(self:LazyPlugin))[]
---@field opts? PluginOpts
@ -40,6 +41,7 @@
---@class LazyPluginBase
---@field [1] string?
---@field name string display name and name used for plugin config files
---@field main? string Entry module that has setup & deactivate
---@field url string?
---@field dir string
---@field enabled? boolean|(fun():boolean)