From 527f83cae50b99d16327447eb813b4f73e09ec0d Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 1 Feb 2023 08:08:44 +0100 Subject: [PATCH] fix(health): existing packages on windows. Fixes #474 --- lua/lazy/health.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/health.lua b/lua/lazy/health.lua index 31fbd506..75a85a65 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