fix(zen): parent buf. Fixes #720

This commit is contained in:
Folke Lemaitre 2025-01-23 17:06:50 +01:00
parent 6f186a725f
commit f31467637a
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -195,7 +195,7 @@ function M.zen(opts)
-- when the zen buffer changes
win:on("BufWinEnter", function()
vim.api.nvim_win_set_buf(parent_win, win.buf)
end, { buf = true })
end)
-- close when entering another window
win:on("WinEnter", function()