rainstormstudio / treemacs-nerd-icons

GNU General Public License v3.0
19 stars 10 forks source link

Misalignment after nerd-icons-install-fonts #4

Open ghost opened 1 year ago

ghost commented 1 year ago

Hello, I'm new in emacs and I wanted to use this package as I dont like the looks of all-the-icons. Now, I don't really know to put this on treemacs' issue, or this package's issue. But here's my problem. If I use this package without doing the command nerd-icons-install-fonts, It looks like that. Icons are aligned, although there's different sizes.

image

But after I did nerd-icons-install-fonts, treemacs would look like this. Icons are all at the same size but misaligned. What could be the problem here? I'm using doom-material-dark theme, and Jetbrains Mono Nerd Font.

image

And even if I disable this package after installing the fonts, the misalignment persists.

image

rainstormstudio commented 1 year ago

I'm sure this is related to the tab width. nerd-icons-install-fonts simply downloads and installs the Nerd Font Symbols Mono. I'm guessing its width for tab is a little bit different.

To solve this I might need to do some more research. At the mean time, if you are simply looking for some useful and good-looking file tree package I recommend you dirvish. I added nerd-icons support for it too. Below is a screenshot of it as well as my use-package configuration for dirvish with nerd-icons enabled:

image