fix(win): unset winblend when transparent

This commit is contained in:
Folke Lemaitre 2024-12-16 08:49:33 +01:00
parent 766e671452
commit 0617e28f82
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -442,10 +442,10 @@ function M:show()
for k, v in pairs(self.opts.w or {}) do
vim.w[self.win][k] = v
end
Snacks.util.wo(self.win, self.opts.wo)
if Snacks.util.is_transparent() then
self.opts.wo.winblend = 0
end
Snacks.util.wo(self.win, self.opts.wo)
if self.opts.on_win then
self.opts.on_win(self)
end