• Stars
    star
    259
  • Rank 154,014 (Top 4 %)
  • Language
    Lua
  • License
    Apache License 2.0
  • Created over 3 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

scrollbar for neovim

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 WinScrolled,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