Xuyuanp/scrollbar.nvim

github github
scrollbar plugin
star 181
stars
alert-circle 9
open issues
users 5
subscribers
git-branch 6
forks
CREATED

2020-09-17

UPDATED

5 months ago

packer

require('packer').startup(function()
  use 'Xuyuanp/scrollbar.nvim'
end)

paq

require "paq" { 
  'Xuyuanp/scrollbar.nvim'
}

scrollbar.nvim

Github Action License GitHub Contributors

scrollbar for neovim(nightly)

Installation

Just use your favorite plugin manager. e.g. vim-plug:

Plug 'Xuyuanp/scrollbar.nvim'

Startup

This plugin provides only two lua functions, show and clear. The following config is recommended.

augroup ScrollbarInit
  autocmd!
  autocmd CursorMoved,VimResized,QuitPre * silent! lua require('scrollbar').show()
  autocmd WinEnter,FocusGained           * silent! lua require('scrollbar').show()
  autocmd WinLeave,BufLeave,BufWinLeave,FocusLost            * silent! lua require('scrollbar').clear()
augroup end

NOTE: clear is NOT disable. To disable it, call clear, then remove all the autocommands.

Options

See in doc :h Scrollbar.nvim.

Similar Projects