Awesome
nvim-scrollbar
A simple and fast scrollbar for Neovim. It is deliberately feature-less and will remain so.
Installation
With packer.nvim:
use {'ojroques/nvim-scrollbar'}
With paq-nvim:
paq {'ojroques/nvim-scrollbar'}
Usage
In your init.lua:
require('scrollbar').setup {}
If you're using a .vimrc or init.vim:
lua require('scrollbar').setup {}
Configuration
You can pass options to the setup()
function. Here are all available options
with their default settings:
M.options = {
symbol_bar = {' ', 'TermCursor'}, -- Bar symbol and highlight group
priority = 10, -- Priority of scrollbar (low value = high priority)
exclude_buftypes = {}, -- Buftypes to exclude
exclude_filetypes = { -- Filetypes to exclude
'qf',
},
render_events = { -- Events triggering the redraw of the bar
'BufWinEnter',
'CmdwinLeave',
'TabEnter',
'TermEnter',
'TextChanged',
'VimResized',
'WinEnter',
'WinScrolled',
},
}
Related plugins
- petertriho's nvim-scrollbar: a scrollbar for Neovim with more features.
- vim-scrollstatus: a Vim plugin (also compatible with Neovim) to display a scrollbar in the statusline.