From 43b303bd8f2eb45a251e370694cc871e20d7d557 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 6 Dec 2022 11:09:14 +0100 Subject: [PATCH] fix: dev plugins with dev=false should be configured as remote --- 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 f98198a..dc06e05 100644 --- a/lua/lazy/core/plugin.lua +++ b/lua/lazy/core/plugin.lua @@ -92,7 +92,7 @@ function Spec:add(plugin, is_dep) -- check for plugins that should be local for _, pattern in ipairs(Config.options.dev.patterns) do - if plugin.dev or plugin[1]:find(pattern, 1, true) then + if plugin.dev or (plugin[1]:find(pattern, 1, true) and plugin.dev ~= false) then plugin.uri = Config.options.dev.path .. "/" .. plugin.name break end