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

when handling single-line statements, the indent guide line extends slightly beyond its scope. #32

Open
ngpong opened this issue Oct 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ngpong
Copy link

ngpong commented Oct 25, 2024

First of all, I want to express my sincere gratitude for this fantastic plugin. After comparing it with other options, I still find this one renders the fastest, with no perceivable delay to the human eye. I’m genuinely appreciative of this wonderful community.

As the title suggests, there seems to be a small issue here, as shown in the image below.

image

I understand that this plugin was likely developed with simplicity and speed in mind. Therefore, I suspect this might not be a bug but rather an intentional choice (apologies if I’m mistaken—please feel free to correct me!). Regardless, "rendering speed" is my top priority, so even if this isn't an issue to be fixed, I'm more than happy to continue using it!

Best wishes!

@glepnir
Copy link
Member

glepnir commented Oct 25, 2024

Yes, this is the result of special processing. Currently, the space is tightened to the maximum above and below to avoid gaps. Behavior like C/C++ supports single lines without {} may look strange. Currently, it is based on a sloppy space judgment. Due to the difference in ast, it may be better to use treesitter. But people usually disable this highlighting system in large files. So the context search judgment is used here....some specific file types may need to be determined by syntax rules. In this way, we can continue to maintain without the help of any tools

@glepnir glepnir added the enhancement New feature or request label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants