From 1df244a3e54ccfd092ae229adfaa56dbc492c897 Mon Sep 17 00:00:00 2001 From: jpaquim Date: Wed, 17 May 2023 13:11:52 +0100 Subject: [PATCH] fix(health): false positive when checking for packer, plugged, paq --- 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 f0ccb22..fff9288 100644 --- a/lua/lazy/health.lua +++ b/lua/lazy/health.lua @@ -38,7 +38,7 @@ function M.check() for _, name in ipairs({ "packer", "plugged", "paq" }) do for _, path in ipairs(vim.opt.rtp:get()) do - if path:find(name, 1, true) then + if path:find("/" .. name .. "/", 1, true) then error("Found paths on the rtp from another plugin manager `" .. name .. "`") break end