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

feat: continue indent guides on wrapped lines #635

Closed
2 tasks done
mcauley-penney opened this issue Jan 1, 2024 · 2 comments · Fixed by #801
Closed
2 tasks done

feat: continue indent guides on wrapped lines #635

mcauley-penney opened this issue Jan 1, 2024 · 2 comments · Fixed by #801
Labels
feature-request Request for a feature to existing module mini.indentscope

Comments

@mcauley-penney
Copy link

mcauley-penney commented Jan 1, 2024

Contributing guidelines

Module(s)

mini.indentscope

Description

What

Nightly now includes the ability to display extmarks on wrapped lines. This feature has made its way into other indent guide plugins (see here and here).

How

Using nightly, seeing the effects of this feature only requires placing virt_text_repeat_linebreak = true into the extmark_opts table in indentscope's make_draw_function(). In the below example, I am using indentscope with this option on, and it is visible on the wrapped lines indicated by dashes in the number columns.

break-with-guide

The bulk of the change seems like it would be adding error handling and checking the user's Neovim version (until 0.10 is released), options, and indentscope configuration.

@mcauley-penney mcauley-penney added the feature-request Request for a feature to existing module label Jan 1, 2024
@echasnovski
Copy link
Owner

Thanks for the suggestion!

I've just checked it, and it indeed seems to work with one line change.

As the feature is only a week old, I'd wait a bit until it is more polished. Then add it behind a version check.

@echasnovski
Copy link
Owner

This should be resolved on latest main thanks to @gpanders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for a feature to existing module mini.indentscope
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants