mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(cache): use vim.cache
everywhere. poly-fill when needed
This commit is contained in:
parent
4446d69c28
commit
ea1a044e3c
6 changed files with 14 additions and 15 deletions
|
@ -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" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue