Introduction
I recently posted an article about the creation of a scrollbar plugin for neovim.
The repositry is here.
Multicolumn feature
Until now, only one line was reserved for display area at the right edge of windows, where components such as scrollbars, search, diagnostics, etc. were displayed together.
However, when components overlap, only the components with the highest priority (A priority can be set for each component) is displayed, which sometimes makes the display difficult to see.
This time, we added options to allow multiple lines to be reserved as the display area(the width
option), and to determine on which line of the reserved lines to display the component(the draw_columns
option for each component).
Specify an integer for the width
option and an array for the draw_columns
options.
It looks like the image below.
By default, the first column from the left is set to search, the second to git hunks, the third to diagnostics, and the scroll bar and cursor position are set to display in all columns.
I hope this feature is useful for you.
Top comments (0)