Skip to content

ojroques/nvim-scrollbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nvim-scrollbar

A simple and fast scrollbar for Neovim. It is deliberately feature-less and will remain so.

demo

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

License

LICENSE

Releases

No releases published