We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ec8f08 commit 9e90852Copy full SHA for 9e90852
lua/lazy/core/cache.lua
@@ -82,7 +82,7 @@ function M.check_autoload(modname, modpath)
82
-- we're not interested in loader time, so calculate delta here
83
M.stats.autoload.time = M.stats.autoload.time + uv.hrtime() - start
84
-- only autoload when plugins have been loaded
85
- if #require("lazy.core.config").plugins > 0 then
+ if not vim.tbl_isempty(require("lazy.core.config").plugins) then
86
if not plugin._.loaded then
87
if plugin.module == false then
88
error("Plugin " .. plugin.name .. " is not loaded and is configured with module=false")
0 commit comments