HampusHauffman / block.nvim

209 stars 2 forks source link

Incorrect coloring in several cases #12

Closed nyngwang closed 1 year ago

nyngwang commented 1 year ago

Case 1

In Lua, using .. to concatenate strings will create a new level, but it shouldn't:

Case 2

Using nerd-font symbols(probably related to Unicode? which will make solving this problem hard) will make the calculation incorrect, so there will be some "black boxes/rectangles" like this:

If I further scroll horizontally, then this second case is basically issue #4, i.e. those "black boxes" got wider.

Keymo42 commented 1 year ago

Coloring also seems to be wrong for go code in general. I wonder if it would be possible to use the same indent information that Treesitter uses for folds.