diff --git a/lua/snacks/picker/config/init.lua b/lua/snacks/picker/config/init.lua index 232c6d48..8ed6f079 100644 --- a/lua/snacks/picker/config/init.lua +++ b/lua/snacks/picker/config/init.lua @@ -89,7 +89,8 @@ function M.layout(opts) end local preset = M.resolve(layout.preset or "custom", opts.source) local ret = vim.deepcopy(opts.layouts and opts.layouts[preset] or layouts[preset] or {}) - ret = Snacks.config.merge(ret, layout) + -- NOTE: use deep extend instead of merge to allow merging list-like tables + ret = vim.tbl_deep_extend("force", ret, layout) ret.preset = nil return ret end