FiraCode icon indicating copy to clipboard operation
FiraCode copied to clipboard

Allow disabling ligatures for <$

Open geoffreytools opened this issue 3 years ago • 2 comments
trafficstars

Hi,

It is a common pattern in JS to use the character $ to mean something special, or as a prefix/suffix.

The problem when doing this in TS at the type level is that it can be surrounded by angle brackets, then haskell ligatures kick in and it looks a little weird.

weird

geoffreytools avatar Apr 03 '22 08:04 geoffreytools

Thanks! I can add an exception when <$ is followed by <. Would that work?

tonsky avatar Apr 03 '22 12:04 tonsky

Sadly, my screenshot was not the most minimal example and I noticed other instances where it looks really off.

The last line looks OK but every other case has kerning and syntax highlighting issues.

I guess <$> is sufficiently uncommon that nobody would mind if it stayed as is.

cases

geoffreytools avatar Apr 03 '22 17:04 geoffreytools