mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
refactor: Handler.load => Handler.resolve
This commit is contained in:
parent
03419f3e5f
commit
c059eece0c
2 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ end
|
|||
function M.enable(plugin)
|
||||
if not plugin._.loaded then
|
||||
if not plugin._.handlers then
|
||||
M.load(plugin)
|
||||
M.resolve(plugin)
|
||||
end
|
||||
for type in pairs(plugin._.handlers or {}) do
|
||||
M.handlers[type]:add(plugin)
|
||||
|
@ -98,7 +98,7 @@ function M:_values(values, plugin)
|
|||
end
|
||||
|
||||
---@param plugin LazyPlugin
|
||||
function M.load(plugin)
|
||||
function M.resolve(plugin)
|
||||
local Plugin = require("lazy.core.plugin")
|
||||
plugin._.handlers = {}
|
||||
for type, handler in pairs(M.handlers) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue