Skip to content

Commit

Permalink
fix(fragments): check for empty plugin names
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 24, 2024
1 parent 378bfb4 commit dea1f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/fragments.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function M:add(plugin)
fragment.name = fragment.name
or fragment.url and self.spec.get_name(fragment.url)
or fragment.dir and self.spec.get_name(fragment.dir)
if not fragment.name then
if not fragment.name or fragment.name == "" then
return self.spec:error("Invalid plugin spec " .. vim.inspect(plugin))
end

Expand Down

0 comments on commit dea1f68

Please sign in to comment.