mirror of https://github.com/folke/lazy.nvim.git
fix(health): existing packages on windows. Fixes #474
This commit is contained in:
parent
c83563d34a
commit
527f83cae5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue