fix(zen): when Normal is transparent, show an opaque transparent backdrop. Fixes #235

This commit is contained in:
Folke Lemaitre 2024-12-10 19:50:47 +01:00
parent acf743fcfc
commit d93de7af69
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 9 additions and 2 deletions

View file

@ -106,6 +106,9 @@ function M.zen(opts)
local parent_win = vim.api.nvim_get_current_win()
local buf = vim.api.nvim_get_current_buf()
local win_opts = Snacks.win.resolve({ style = "zen" }, opts.win, { buf = buf })
if Snacks.util.is_transparent() and type(win_opts.backdrop) == "table" then
win_opts.backdrop.transparent = false
end
local zoom_indicator ---@type snacks.win?
local show_indicator = false