You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
ifvim.fn.line('.') >vim.fn.winheight(0) /2thenvim.cmd('normal! zz')
end
or similar. The option name could be smart_center.
The text was updated successfully, but these errors were encountered:
Can't test due to health issues, but it does look like autocmd would work. But I do think it'd be cooler to implement at the plugin level — as it does not add much code or overhead, and is a practically useful option — leaving a cursor at the end is quite common, and an option to center it vertically is nice.
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
.The text was updated successfully, but these errors were encountered: