Skip to content

Commit dea1f68

Browse files
committed
fix(fragments): check for empty plugin names
1 parent 378bfb4 commit dea1f68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lazy/core/fragments.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function M:add(plugin)
124124
fragment.name = fragment.name
125125
or fragment.url and self.spec.get_name(fragment.url)
126126
or fragment.dir and self.spec.get_name(fragment.dir)
127-
if not fragment.name then
127+
if not fragment.name or fragment.name == "" then
128128
return self.spec:error("Invalid plugin spec " .. vim.inspect(plugin))
129129
end
130130

0 commit comments

Comments
 (0)