From bbc17cb3b097cfa14e39e8dccb341fd9b462b1cf Mon Sep 17 00:00:00 2001 From: Sebastian Lyng Johansen Date: Wed, 21 Dec 2022 20:05:32 +0100 Subject: [PATCH] fix: only use dev url if plugin exists --- lua/lazy/core/plugin.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/core/plugin.lua b/lua/lazy/core/plugin.lua index 1a6d439..0b6da43 100644 --- a/lua/lazy/core/plugin.lua +++ b/lua/lazy/core/plugin.lua @@ -93,7 +93,7 @@ function Spec:add(plugin, is_dep) end end -- dev plugins - if plugin.dev then + if plugin.dev and vim.loop.fs_stat(Config.options.dev.path .. "/" .. plugin.name) then plugin.dir = Config.options.dev.path .. "/" .. plugin.name else -- remote plugin