mirror of https://github.com/folke/lazy.nvim.git
fix(fragments): check for empty plugin names
This commit is contained in:
parent
378bfb4656
commit
dea1f687fe
|
@ -124,7 +124,7 @@ function M:add(plugin)
|
||||||
fragment.name = fragment.name
|
fragment.name = fragment.name
|
||||||
or fragment.url and self.spec.get_name(fragment.url)
|
or fragment.url and self.spec.get_name(fragment.url)
|
||||||
or fragment.dir and self.spec.get_name(fragment.dir)
|
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))
|
return self.spec:error("Invalid plugin spec " .. vim.inspect(plugin))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue