Set scrolloff in zen mode to keep current line centered when possible

This commit is contained in:
Evie Litherland-Smith 2023-03-10 16:51:43 +00:00
parent 3d9596a6c7
commit e3ce9d4746

View file

@ -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
}