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:
10
lua/dep.lua
10
lua/dep.lua
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user