fix(win): dont update win opt noautocmd

This commit is contained in:
Folke Lemaitre 2024-11-05 19:35:25 +01:00
parent 71dd912763
commit a06e3ed8fc
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 4 additions and 1 deletions

View file

@ -9,6 +9,7 @@ Snacks.config.view("notification", {
win = {
border = "rounded",
zindex = 100,
noautocmd = true,
},
wo = { winblend = 5 },
})

View file

@ -249,7 +249,9 @@ end
function M:update()
if self:valid() and self:is_floating() then
vim.api.nvim_win_set_config(self.win, self:win_opts())
local opts = self:win_opts()
opts.noautocmd = nil
vim.api.nvim_win_set_config(self.win, opts)
end
end