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?
|
||||
function M.parse(file)
|
||||
local ret = {}
|
||||
return pcall(function()
|
||||
loadfile(file, "t", ret)()
|
||||
local ok = pcall(function()
|
||||
loadfile(file, nil, ret)()
|
||||
end) and ret or nil
|
||||
return ok and ret or nil
|
||||
end
|
||||
|
||||
---@param plugin LazyPlugin
|
||||
|
|
Loading…
Reference in New Issue