fix(config): join and fold correctly (#148)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham 2024-08-22 02:09:36 -04:00 committed by GitHub
parent 8d52229f16
commit 9211babf09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -267,9 +267,16 @@ M.parse_config = function(opts)
end end
end end
return s1, vim.tbl_filter(function(it) return s1,
return type(it) ~= "function" vim
end, s2) .iter(s2)
:filter(function(k, v)
return type(v) ~= "function"
end)
:fold({}, function(acc, k, v)
acc[k] = v
return acc
end)
end end
---@private ---@private