mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix: only run normal mode commands if not in terminal mode
This commit is contained in:
parent
bc0630e43b
commit
68226001a1
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue