mirror of https://github.com/folke/lazy.nvim.git
fix(rockspec): allow binary lua files. Fixes #1800
This commit is contained in:
parent
cf8ecc2c5e
commit
408449a59a
|
@ -224,9 +224,10 @@ end
|
||||||
---@return table?
|
---@return table?
|
||||||
function M.parse(file)
|
function M.parse(file)
|
||||||
local ret = {}
|
local ret = {}
|
||||||
return pcall(function()
|
local ok = pcall(function()
|
||||||
loadfile(file, "t", ret)()
|
loadfile(file, nil, ret)()
|
||||||
end) and ret or nil
|
end) and ret or nil
|
||||||
|
return ok and ret or nil
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param plugin LazyPlugin
|
---@param plugin LazyPlugin
|
||||||
|
|
Loading…
Reference in New Issue