Skip to content

Commit 9e90852

Browse files
committed
fix(cache): autoloading was broken!
1 parent 1ec8f08 commit 9e90852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lazy/core/cache.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function M.check_autoload(modname, modpath)
8282
-- we're not interested in loader time, so calculate delta here
8383
M.stats.autoload.time = M.stats.autoload.time + uv.hrtime() - start
8484
-- only autoload when plugins have been loaded
85-
if #require("lazy.core.config").plugins > 0 then
85+
if not vim.tbl_isempty(require("lazy.core.config").plugins) then
8686
if not plugin._.loaded then
8787
if plugin.module == false then
8888
error("Plugin " .. plugin.name .. " is not loaded and is configured with module=false")

0 commit comments

Comments
 (0)