ojroques / nvim-scrollbar

A simple and fast scrollbar for Neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A simple and fast scrollbar for Neovim

License:BSD 2-Clause "Simplified" License


Languages

Language:Lua 96.8%Language:Vim Script 3.2%