mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(zen): when Normal is transparent, show an opaque transparent backdrop. Fixes #235
This commit is contained in:
parent
acf743fcfc
commit
d93de7af69
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue