vim-indent-guides icon indicating copy to clipboard operation
vim-indent-guides copied to clipboard

Minimum number of lines to show the indentation

Open eugen0329 opened this issue 9 years ago • 4 comments

Can you please add a feature to specify the number of lines to show the indentation highlight (something like g:indent_guides_min_indent_lines)?. For example:

····

Perhaps there is no particular need to highlight closely placed blocks, since visually it's not difficult to determine the level of nesting.

eugen0329 avatar Apr 24 '15 08:04 eugen0329

There's an option to control which indent level to start showing guides from, i.e. let g:indent_guides_start_level = 2

If that's not what you're after, please provide another example or more context.

nathanaelkane avatar Apr 27 '15 05:04 nathanaelkane

For example: 1

2 ····

3

Indent guides is not required because only one line will be highlighted. Not to create additional highlights, we would set g:indent_guides_min_indent_lines to 1 (for instance), but in the following case the number of lines is greater than 1, so it's more complicated to determine the level of indentation and indents will be highlighted for this block: 1
2 ▮···

3 ▮···

4

eugen0329 avatar Apr 27 '15 15:04 eugen0329

Cool, I get it now. I don't mind the idea - will look into it when I get some time. Until then, happy to take pull requests.

nathanaelkane avatar Apr 27 '15 22:04 nathanaelkane

+1 great idea, I find the highlights are distracting at anything less than 5 lines.

rightaway avatar Jun 20 '15 00:06 rightaway