fix(config): join and fold correctly (#148)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
parent
8d52229f16
commit
9211babf09
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user