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

@ -241,8 +241,7 @@ function M.get_unloaded_rtp(modname)
end
function M.find_root(modname)
local Cache = require("lazy.core.cache")
local modpath = Cache.find(modname, {
local modpath = vim.cache.find(modname, {
rtp = true,
paths = M.get_unloaded_rtp(modname),
patterns = { "", ".lua" },