fix(wezterm): properly merge tables

This commit is contained in:
Price Hiller 2022-09-26 16:16:00 -05:00
parent e64235bb38
commit 063a728c27

View File

@ -29,6 +29,9 @@ function M.Table.merge(...)
local ret = {}
for _, tbl in ipairs({ ... }) do
for k, v in pairs(tbl) do
if ret[k] ~= nil and type(ret[k]) == "table" and type(v) == "table" then
v = M.Table.merge(ret[k], v)
end
ret[k] = v
end
end