-
Notifications
You must be signed in to change notification settings - Fork 166
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
Enabling per-buffer or per-filetype #80
Comments
Is anybody interested in pointing me in the right direction for building this myself? |
Can't you use bufenter and bufleave instead of filetype |
It doesn't really make a difference. The |
Is this issue dead? This is still very much a problem for me day-to-day :(. |
I think what @davidosomething mean is that you can setup BufEnter and BufLeave for your filetype that needs indent guide as a workaround. For example, if I want it ON only for Python:
So That the IndentGuide settings can be mostly confined to the active buffer's. But I agree, this solution is cumbersome. And it looks weired when opening a buffer supposedly using IndentGuide and one not so side-by-side with split. Is there any plan on making a alternative as @kballenegger suggested? It's a sensible request to me. |
@Ron89 that looks similar to the I don't mind the idea of the filetype whitelist behaviour that @kballenegger suggested, but I think it'd have to be a new option. |
|
Please re-open if |
Not sure how to re-open this, but I don't find
|
Same here, i used BufEnter/BufLeave to toggle it, but when you have splits, going from one split to another disable it for the first split, would be better to enable it by filetype. |
A little bit old but I had similar needs as you @tshirtman / @kballenegger , i just pushed a PR who seems to satisfy my needs and think it should satisfy yours too. Could you please confirm if it is the case ? Regards, |
I'd like to have indent-guides only enabled for certain filetypes (those with significant whitespace). Right now, my configuration looks like this:
The problem is that indent-guides is enabled or disabled globally, and not per buffer, and refresh on buffer enter. Two potential solutions:
autocmd
set up for my use case.The text was updated successfully, but these errors were encountered: