Set scrolloff in zen mode to keep current line centered when possible
This commit is contained in:
parent
3d9596a6c7
commit
e3ce9d4746
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue