-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
feat: repeat indent guides on wrapped lines with 'breakindent' #810
feat: repeat indent guides on wrapped lines with 'breakindent' #810
Conversation
Depends on neovim/neovim#26625. Currently testing if it is included with One caveat here is that since extmarks are local to a buffer, and |
897c4ff
to
5b3b2df
Compare
Thanks, this is nice.
Yeah, version check would be cleaner. You can just add the version check now with 0.10. I only support latest nightly and stable.
This is fine, there are other option values with the same restriction already. I have this helper function to get the right window ID to use with indent-blankline.nvim/lua/ibl/utils.lua Lines 131 to 142 in 0dca928
And please add the option to the docs as well. |
c1da3ab
to
d346797
Compare
Hmm there is another caveat. Depending on the value of Maybe we have to parse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one small comment, rest looks good now
I will think about how to handle |
That's my feeling as well. I'll address the comments/CI failure later. |
Opt-out with ibl.config.indent.repeat_linebreak = false.
d346797
to
13c602f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you 🚀
Should this be on by default? It seems like having the default options require the latest Neovim nightly is a bad idea even if the user can opt out of the new feature. It seems like it should be an opt in |
Whether an option requires a certain Neovim version seems irrelevant to the option's default value. I think most people will want this option enabled, that's why I suggested opt out. I do agree that just checking for |
Yeah I agree. I'll be honest, I just saw in the docs that the default is true and I didn't notice the check for 0.10. this is a completely sane default and relying on people using nightly to just update makes sense for me! People using nightly accept the chance for bugs and potentially infinite amounts of instability 😂 |
The option will simply be ignored if you are on stable. |
Opt-out with
ibl.config.indent.repeat_linebreak = false
.Close #577