Amazing plugin, and an option to auto-zz if below center would be useful. I've tried to add it in custom_actions, but it needs to be after the return, and also work on previous • next. The code is quite simple to implement:
if vim.fn.line('.') > vim.fn.winheight(0) / 2 then
vim.cmd('normal! zz')
end
or similar. The option name could be smart_center.
Amazing plugin, and an option to auto-
zz
if below center would be useful. I've tried to add it incustom_actions
, but it needs to be after the return, and also work on previous • next. The code is quite simple to implement:or similar. The option name could be
smart_center
.