From 370b1b982e95c004512604eb87f0facd03340095 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 28 Dec 2022 23:50:25 +0100 Subject: [PATCH] fix(cache): make it work again... #fixup --- lua/lazy/core/cache.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/lazy/core/cache.lua b/lua/lazy/core/cache.lua index 2c5ba2e..f61236a 100644 --- a/lua/lazy/core/cache.lua +++ b/lua/lazy/core/cache.lua @@ -34,10 +34,12 @@ M.stats = { find = { total = 0, time = 0, rtp = 0, unloaded = 0, index = 0, stat = 0, not_found = 0 }, autoload = { total = 0, time = 0 }, } +M.me = debug.getinfo(1, "S").source:sub(2) +M.me = vim.fn.fnamemodify(M.me, ":p:h:h:h:h"):gsub("\\", "/") ---@type table> -M.topmods = {} +M.topmods = { lazy = { [M.me] = M.me } } ---@type table -M.indexed = {} +M.indexed = { [M.me] = true } M.indexed_rtp = false M.indexed_unloaded = false -- selene:allow(global_usage)