nvim-scrollbar icon indicating copy to clipboard operation
nvim-scrollbar copied to clipboard

Option to offset scrollbar from right edge

Open JoseConseco opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. On ultra wide monitor - having scroll bar on the very right is bit hard to see.

Describe the solution you'd like Offset scroll bar by eg. X parameter could be nice. It would move scrollbar closer to center. Or just move it by -1 to left (without introducing new parameter)

Describe alternatives you've considered Tried custom font symbol that is offset ed to left, but its not enough -eg '▌'

Example of other scrollbar plug where plugin author moved it by default by 1 to left (used with symbol above, to make it more thin/modern looking) : image

JoseConseco avatar Nov 12 '22 11:11 JoseConseco

We can just add space to right, thus scroll bar will move 1 col to left.

    handle = {
        text = "▎ ",
        color = 'NONE', -- or nil? 
        highlight = 'Comment'
}

But I noticed scrollbar background is not transparent - (I tried color=nil or color='NONE' ) so now it covers 2 columns at right. Is it possible to make scrollbar background transparent (or virtual text cant be transparent)?

JoseConseco avatar Nov 12 '22 15:11 JoseConseco