From e5845d0d6052ec5f97aa6e806bf7c7fb731560af Mon Sep 17 00:00:00 2001 From: nullchilly Date: Tue, 24 Jan 2023 23:00:58 +0700 Subject: [PATCH] feat: fallback to git when local plugin isn't found --- 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 4873249..5eba1f9 100644 --- a/lua/lazy/core/plugin.lua +++ b/lua/lazy/core/plugin.lua @@ -91,7 +91,7 @@ function Spec:add(plugin, results, is_dep) end end -- dev plugins - if plugin.dev then + if plugin.dev and vim.fn.isdirectory(Config.options.dev.path .. "/" .. plugin.name) == 1 then plugin.dir = Config.options.dev.path .. "/" .. plugin.name else -- remote plugin