fix(cache): make it work again... #fixup

This commit is contained in:
Folke Lemaitre 2022-12-28 23:50:25 +01:00
parent c2f7e2d098
commit 370b1b982e
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 4 additions and 2 deletions

View File

@ -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<string, table<string,string>>
M.topmods = {}
M.topmods = { lazy = { [M.me] = M.me } }
---@type table<string, true>
M.indexed = {}
M.indexed = { [M.me] = true }
M.indexed_rtp = false
M.indexed_unloaded = false
-- selene:allow(global_usage)