fix(plugin): only get plugin from spec when needed.

This commit is contained in:
Folke Lemaitre 2023-01-02 15:27:01 +01:00
parent 9893430187
commit ce3e1fc560
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -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