mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
refactor(cache): refactor for upstreaming to vim.loader
This commit is contained in:
parent
e27c9df5fe
commit
6b55862d2d
4 changed files with 144 additions and 97 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue