A simple plugin to make Neovim naturally scroll through the end of files. Uses the value of scrolloff
to continue scrolling as if there were more lines below the last line.
demo.mp4
Using lazy.nvim:
{
'plax-00/endscroll.nvim',
opts = {},
}
Using vim-plug:
Plug 'plax-00/endscroll.nvim'
lua require('endscroll').setup {}
These are the default settings. Any changes can be made in the call to setup
.
-- default settings
require('endscroll').setup {
scroll_at_end = true, -- pressing j on the last line keeps scrolling the screen
disabled_filetypes = { -- list of filetypes for which this extension will be disabled
'dashboard',
'lazy',
'noice',
'NvimTree',
'neo-tree',
},
}