File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -259,8 +259,10 @@ function M.reload(plugin)
259
259
load = true
260
260
end
261
261
262
- for _ , event in ipairs (plugin .event or {}) do
263
- if event == " VimEnter" or event == " UIEnter" or event :find (" VeryLazy" ) then
262
+ local events = plugin ._ .handlers and plugin ._ .handlers .event and plugin ._ .handlers .event or {}
263
+
264
+ for _ , event in pairs (events ) do
265
+ if event .id :find (" VimEnter" ) or event .id :find (" UIEnter" ) or event .id :find (" VeryLazy" ) then
264
266
load = true
265
267
break
266
268
end
Original file line number Diff line number Diff line change 32
32
--- @field build ? string | fun ( self : LazyPlugin )|( string | fun ( self : LazyPlugin )) []
33
33
--- @field opts ? PluginOpts
34
34
35
- --- @class LazyPluginHandlers : {[ string ] : any }
35
+ --- @class LazyPluginHandlers
36
36
--- @field event ? table<string,LazyEvent>
37
37
--- @field ft ? table<string,LazyEvent>
38
38
--- @field keys ? table<string,LazyKeys>
You can’t perform that action at this time.
0 commit comments