mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 21:06:46 +00:00
fix(fragments): check for empty plugin names
This commit is contained in:
parent
378bfb4656
commit
dea1f687fe
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue