Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimum number of lines to show the indentation #84

Open
eugen0329 opened this issue Apr 24, 2015 · 4 comments
Open

Minimum number of lines to show the indentation #84

eugen0329 opened this issue Apr 24, 2015 · 4 comments

Comments

@eugen0329
Copy link

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.
@nathanaelkane
Copy link
Collaborator

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.

@eugen0329
Copy link
Author

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

@nathanaelkane
Copy link
Collaborator

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.

@rightaway
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants