diff --git a/lua/lazy/health.lua b/lua/lazy/health.lua index 31fbd50..75a85a6 100644 --- a/lua/lazy/health.lua +++ b/lua/lazy/health.lua @@ -20,7 +20,7 @@ function M.check() local existing = false for _, site in pairs(sites) do for _, packs in ipairs(vim.fn.expand(site .. "/pack/*", false, true)) do - if not packs:find("/dist$") and vim.loop.fs_stat(packs) then + if not packs:find("[/\\]dist$") and vim.loop.fs_stat(packs) then existing = true vim.health.report_warn("found existing packages at `" .. packs .. "`") end