fix: only run normal mode commands if not in terminal mode

This commit is contained in:
Aaron Weisberg 2025-05-24 20:34:22 -07:00
parent bc0630e43b
commit 68226001a1

View file

@ -145,7 +145,9 @@ function M.zen(opts)
-- create window
local win = Snacks.win(win_opts)
vim.cmd([[norm! zz]])
if vim.bo[buf].buftype ~= "terminal" then
vim.cmd([[norm! zz]])
end
M.win = win
if show_indicator then