dstein64 / nvim-scrollview

A Neovim plugin that displays interactive vertical scrollbars and signs.
MIT License
517 stars 9 forks source link

Always show the scrollbar #92

Closed rockyzhang24 closed 1 year ago

rockyzhang24 commented 1 year ago

The signs that recently added are the no doubt killer feature. Thank you for your efforts.

I am wondering now how to make the scrollbar always display even if the content is less than one screen?

dstein64 commented 1 year ago

Hi @rockyzhang24, I'm glad to hear you like the recently added signs feature.

Thanks for the idea to have scrollview always show!

I've added a configuration option, scrollview_always_show, which defaults to v:false. When set to v:true, scrollbars and signs will appear even when all lines are visible (e733fcfca7fa1d8879186d21a8d3726a0217aa56).

VimScript

let g:scrollview_always_show = v:true

Lua

-- Using a config variable:
vim.g.scrollview_always_show = true

-- Or using setup():
require('scrollview').setup({
  ...
  always_show = true,
  ...
})
rockyzhang24 commented 1 year ago

Thank you so much!