Firacode: \/ and /\ only works if not surrounded with spaces

Created on 25 Apr 2020  ·  4Comments  ·  Source: tonsky/FiraCode

Most helpful comment

I’ll add those four to the exception. Can’t be solved in general case, but might be just good enough

All 4 comments

The idea for those ligatures was that they might interfere a lot with e.g. regular expressions. So they are only enabled on start/end of the line or when surrounded by whitespace.

The problem is, though, that you are surrounding them with something else than whitespace. Those little dots are actual characters, which are not considered space, I guess.

Screenshot 2020-04-26 at 1 44 23

oh, yes, this is space:· in vim configuration set listchars=tab:│\ ,trail:•,extends:❯,precedes:❮,space:·

not sure how this should be solved then

this can be done 2 ways:

  • it can ligate always, but the height should be consistent
  • other characters can be considered as whitespace: · .

I’ll add those four to the exception. Can’t be solved in general case, but might be just good enough

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Igorgro picture Igorgro  ·  3Comments

pedrowebcomum picture pedrowebcomum  ·  4Comments

hatched picture hatched  ·  3Comments

aolko picture aolko  ·  3Comments

miniBill picture miniBill  ·  4Comments