hlchunk.nvim icon indicating copy to clipboard operation
hlchunk.nvim copied to clipboard

Chunk doesnt render correctly

Open knevan opened this issue 1 year ago • 7 comments

Describe the bug Chunk renders correctly when enabling word wrap and half-screen buffer

To Reproduce Steps to reproduce the behavior:

  1. Make the buffer half the screen.
  2. Enable word wrap

Expected behavior Chunk render correcly

Screenshots If applicable, add screenshots to help explain your problem. image

knevan avatar Jan 12 '25 18:01 knevan

Any ide @shellRaining? sorry for the tag

knevan avatar Jan 13 '25 07:01 knevan

Sorry, I don't have a good solution to this issue, as enabling warp could likely cause the second line of wrapped code to overlap with the characters about to be rendered, making it seem quite challenging to implement.

shellRaining avatar Jan 13 '25 08:01 shellRaining

I still prefer hlchunk over snacks.nvim indent chunk because I think it is more accurate in displaying the chunk and can change color if there is an error which snacks chunk is not accurate and cannot change color, unfortunately it only has rendering issues which snacks.nvim chunk does not. Is it possible to see the code that snacks.nvim indent chunk implements in terms of rendering chunks?

knevan avatar Jan 13 '25 09:01 knevan

OK, i will take a look

shellRaining avatar Jan 13 '25 10:01 shellRaining

Is there any progress on this issue?

knevan avatar Jan 24 '25 18:01 knevan

I just got back home from my trip, now looking take a look for snacks.nvim. I'll let you know if there are any new developments.

shellRaining avatar Jan 25 '25 05:01 shellRaining

This might be related; the chunk also does not render on lines with virtual text. For example when using symbol-usage.nvim.

Image

dileep-kishore avatar Apr 21 '25 03:04 dileep-kishore