File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ function M.loader(modname)
92
92
return chunk or error (err )
93
93
end
94
94
95
+ function M .require (modname )
96
+ return M .loader (modname )()
97
+ end
98
+
95
99
function M .idx ()
96
100
-- update our loader position if needed
97
101
if package.loaders [M .loader_idx ] ~= M .loader then
Original file line number Diff line number Diff line change 1
1
local Config = require (" lazy.core.config" )
2
2
local Util = require (" lazy.core.util" )
3
3
local Handler = require (" lazy.core.handler" )
4
+ local Cache = require (" lazy.core.cache" )
4
5
5
6
local M = {}
6
7
@@ -217,7 +218,7 @@ function M.spec()
217
218
--- @diagnostic disable-next-line : no-unknown
218
219
package.loaded [modname ] = nil
219
220
Util .try (function ()
220
- spec :normalize (require (modname ))
221
+ spec :normalize (Cache . require (modname ))
221
222
end , " Failed to load **" .. modname .. " **" )
222
223
end
223
224
local path_plugins = vim .fn .stdpath (" config" ) .. " /lua/" .. Config .spec :gsub (" %." , " /" )
You can’t perform that action at this time.
0 commit comments