add stricter checking on urls and paths, and make sure that if one

package fails to load other may continue to load
This commit is contained in:
2025-04-25 23:58:33 -05:00
parent dfb1820a8e
commit 2ccbb7ea74
2 changed files with 22 additions and 6 deletions

View File

@ -42,12 +42,10 @@ function M.registertree(speclist, overrides)
disable = over.disable or spec.disable
}
local ok = packager:new(spec, overrides)
-- if erroring print out the spec and the error
if not ok then
error(string.format("(spec=%s)", vim.inspect(spec)))
end
-- While a package can fail to load we just don't care, it will work itself
-- out. The goal is to make sure every plugin that can load does load, not
-- keep working plugins from loading because an unrelated one doesn't load.
packager:new(spec, overrides)
end
end