refactor(cache): refactor for upstreaming to vim.loader

This commit is contained in:
Folke Lemaitre 2023-03-15 15:10:44 +01:00
parent e27c9df5fe
commit 6b55862d2d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 144 additions and 97 deletions

View file

@ -33,9 +33,9 @@ function M.setup(spec, opts)
end
local start = vim.loop.hrtime()
-- disable the Neovim cache if it would ever be added
if vim.cache and vim.cache.disable then
vim.cache.disable()
-- use the NEovim cache if available
if vim.loader then
package.loaded["lazy.core.cache"] = vim.loader
end
local Cache = require("lazy.core.cache")