mirror of https://github.com/folke/lazy.nvim.git
fix(cache): never use packer paths from cache
This commit is contained in:
parent
5697098e97
commit
bb53b8473c
|
@ -35,6 +35,11 @@ M._loadfile = _G.loadfile
|
|||
|
||||
-- checks whether the cached modpath is still valid
|
||||
function M.check_path(modname, modpath)
|
||||
-- HACK: never return packer paths
|
||||
if modpath:find("/site/pack/packer/", 1, true) then
|
||||
return false
|
||||
end
|
||||
|
||||
-- check rtp excluding plugins. This is a very small list, so should be fast
|
||||
for _, path in ipairs(M.get_rtp()) do
|
||||
if modpath:find(path, 1, true) == 1 then
|
||||
|
|
Loading…
Reference in New Issue