Skip to content

Commit

Permalink
fix(cache): make it work again... #fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 28, 2022
1 parent c2f7e2d commit 370b1b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/lazy/core/cache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 370b1b9

Please sign in to comment.