Open hieutkt opened 9 months ago
oh yeah currently it only supports character with 1-character wide;
BTW what will Iosevka Nerd Font look like in a terminal? Does it also take up 2 character wide?
Hmm... Same thing happens when I tried icons in terminal with nvim, so maybe the problem should not be solved here.
@hieutkt In your case it seems that the font is too large (is it "Propo" - NFP?) try use the no suffix (NF) one which have aligned them to 2 character wide. Read more at the README
By 2 character wide do you mean when you add a space it will occupy 2 char space, like a ligature?
AFAIK that is not handled by the package but rather the renderer. It this case it can be the GUI, and if you use a terminal emulator, the emulator itself. To allow such ligature, you will also need a fonts that has such a feature. For fonts from nerd fonts, that will be the installed font without the "Mono" suffix (NFM). The one with "Propo" suffix (NFP) and no suffix (NF) should work as intended.
edited: I almost never use the GUI and I just check and apparently Emacs does not support ligature natively. My suggestion is that you can try to use Emacs on a terminal emulator that supports ligature (easier IMO), or configure Emacs to support it. I found this, you can see if it is useful for you: https://github.com/mickeynp/ligature.el
Hi, I am using nerd-icons with Doom Emacs.
nerd-icons-font-family
is set to "Iosevka Nerd Font". To my understanding, icons in Iosevka Nerd Font are 2-characters wide, but here they only account for one space.Here's a screenshot. Notice how the icons overlap on one another, and the file icon is right next to file name, because it overlaps with the space after it.
This problem persists with
emacs -nw
.