diff --git a/config/nvim/lua/config/zen_mode.lua b/config/nvim/lua/config/zen_mode.lua index de77cc82..9594b0bf 100644 --- a/config/nvim/lua/config/zen_mode.lua +++ b/config/nvim/lua/config/zen_mode.lua @@ -18,4 +18,10 @@ return { gitsigns = { enabled = true }, tmux = { enabled = true }, }, + on_open = function (win) + vim.wo.scrolloff = 999 + end, + on_close = function (win) + vim.wo.scrolloff = 0 + end }