mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(layout): deep merge instead of shallow merge for window options. Closes #1166
This commit is contained in:
parent
f1c683033d
commit
27256cf989
1 changed files with 1 additions and 2 deletions
|
@ -438,8 +438,7 @@ function M:update_win(win, parent)
|
|||
w.enabled = true
|
||||
assert(w, ("win %s not part of layout"):format(win.win))
|
||||
-- add win opts from layout
|
||||
w.opts = vim.tbl_extend(
|
||||
"force",
|
||||
w.opts = Snacks.config.merge(
|
||||
vim.deepcopy(self.win_opts[win.win] or {}),
|
||||
{
|
||||
width = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue