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.
Using vim-plug:
Plug 'plax-00/endscroll.nvim'
Using packer:
use 'plax-00/endscroll.nvim'
Add the following line to your Neovim config
Lua:
require('endscroll').setup {}
Vimscript:
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
}