emacs-tree-sitter / ts-fold

Code-folding using tree-sitter
GNU General Public License v3.0
219 stars 28 forks source link

Visual glitch with bigger font #122

Open piotr-yuxuan opened 2 months ago

piotr-yuxuan commented 2 months ago

Hello, thanks a lot for this great package 😊

When setting the default face size at 180 instead of the usual 100 the fringe indicators are rendered this way:

image

and I need to manually overload these values:

'ts-fold-indicators-fr-minus-tail
'ts-fold-indicators-fr-center
'ts-fold-indicators-fr-end-left
'ts-fold-indicators-fr-end-right

with some more (balanced) lines

  "........" "........" "........" "........" "........"
  "...XX..." "...XX..." "...XX..." "...XX..." "...XX..."

to get a visual fix: image

I'm wondering what a more flexible fix would look like.

jcs090218 commented 2 months ago

Yeah, this could be an issue since I don't know if there is a flexible way to define these values.🤔

piotr-yuxuan commented 2 months ago

Yeah, it's likely to incur at least a partial rewrite :/ But anyway, thanks a lot for this nice package :-)