From ce3e1fc5603b9f81165f331350bd2dd54b000d32 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 2 Jan 2023 15:27:01 +0100 Subject: [PATCH] fix(plugin): only get plugin from spec when needed. --- 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 284860d..caac9b1 100644 --- a/lua/lazy/core/plugin.lua +++ b/lua/lazy/core/plugin.lua @@ -301,7 +301,7 @@ function M.find(path) local slash = name:reverse():find("/", 1, true) if slash then name = name:sub(#name - slash + 2) - return name and Config.spec.plugins[name] or nil + return name and Config.plugins[name] or Config.spec.plugins[name] or nil end end end