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

Feature request: Show guide lines only when there are at least N continuous lines in current level #331

Open
Frederick888 opened this issue Dec 7, 2021 · 3 comments

Comments

@Frederick888
Copy link

First of all, thanks for making such an awesome plugin!

I especially love the option to colourise the guide lines but sometimes it does look a bit excessive.

So I'm wondering if it's possible to only show the lines when there are at least N continuous lines. For example, cyan lines in screenshot can be hidden since there's only one line on this level.

image

@lukas-reineke
Copy link
Owner

It is currently not possible, and also not trivial to implement.

I doubt a lot of people would use this, so I don't think I will work on this. But I would consider merging a PR if someone else wants to.

@superzanti
Copy link

Is there any way to disable guides on blank lines?

@shellRaining
Copy link

image

Is this the effect you may want? I determine whether to render by follow code

render_info = vim.tbl_filter(function(v)
    return (
        pos2info:has(bufnr, v.lnum - 1, v.virt_text_win_col) or pos2info:has(bufnr, v.lnum + 1, v.virt_text_win_col)
    )
end, render_info)

shellRaining added a commit to shellRaining/hlchunk.nvim that referenced this issue Jun 20, 2024
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

4 participants