diff --git a/lua/lazy/core/plugin.lua b/lua/lazy/core/plugin.lua index dd4ebfd..2b3fbf2 100644 --- a/lua/lazy/core/plugin.lua +++ b/lua/lazy/core/plugin.lua @@ -158,6 +158,9 @@ end ---@param spec LazySpecImport function Spec:import(spec) + if spec.import == "lazy" then + return self:error("You can't name your plugins module `lazy`.") + end if spec.enabled == false or (type(spec.enabled) == "function" and not spec.enabled()) then return end