feat(cache): use vim.cache everywhere. poly-fill when needed

This commit is contained in:
Folke Lemaitre 2023-03-14 19:45:22 +01:00
parent 4446d69c28
commit ea1a044e3c
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
6 changed files with 14 additions and 15 deletions

View file

@ -5,7 +5,6 @@ local Handler = require("lazy.core.handler")
local Git = require("lazy.manage.git")
local Plugin = require("lazy.core.plugin")
local ViewConfig = require("lazy.view.config")
local Cache = require("lazy.core.cache")
local Text = require("lazy.view.text")
@ -676,7 +675,7 @@ function M:debug()
end)
self:nl()
Util.foreach(Cache.stats, function(name, stats)
Util.foreach(vim.cache.stats, function(name, stats)
self:append(name, "LazyH2"):nl()
local props = {
{ "total", stats.total or 0, "Number" },