mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(win): dont update win opt noautocmd
This commit is contained in:
parent
71dd912763
commit
a06e3ed8fc
2 changed files with 4 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ Snacks.config.view("notification", {
|
|||
win = {
|
||||
border = "rounded",
|
||||
zindex = 100,
|
||||
noautocmd = true,
|
||||
},
|
||||
wo = { winblend = 5 },
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue