From 063a728c2721a883ca583430af9f1961a35823b4 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 26 Sep 2022 16:16:00 -0500 Subject: [PATCH] fix(wezterm): properly merge tables --- dots/.config/wezterm/wlib.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dots/.config/wezterm/wlib.lua b/dots/.config/wezterm/wlib.lua index 7aa0beea..b152d875 100644 --- a/dots/.config/wezterm/wlib.lua +++ b/dots/.config/wezterm/wlib.lua @@ -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