nvimdev / indentmini.nvim

A minimal and blazing fast indentline plugin
MIT License
171 stars 12 forks source link

Allow setting minimum number of lines before the indent is drawn #18

Closed savchenko closed 3 months ago

savchenko commented 3 months ago

Displaying indent on 1-2 lines isn't particularly valuable.

Would it be possible to define minimum size of the indentation block?

This might further improve performance and reduce number of distracting visuals.

glepnir commented 3 months ago

i am not sure i understood .. you mean set a min indent block number ? if indent 2 only have 2 lines doesn't show indent line ?

savchenko commented 3 months ago

Consider the example below:

image

Indentation next to the pos and restore is pointless. I propose to add an option that sets minimum number of lines required before the indent is drawn.

Makes sense?

glepnir commented 3 months ago

okay I see what you mean. but this will require a range lookup for each row in on_line then do check the range is smaller or bigger than minimum number.. this is kind of bad.