Open bricka opened 1 year ago
Same problem here:
That looks like the misaligned icons are not using nerd icons (as nerd icons are monocolored icons). Anyway, this could be caused by other bugs from treemacs-nerd-icons. Currently this package has several bugs, and I will fix them as soon as possible.
Turned out it was lsp-treemacs! I removed it and all worked well. But it is a dependency od DAP, so if there is a way to overwrite the icons settings (or the theme) of lsp-treemacs it would be very nice!
Could you please check if 5b09f58e48658328d35e65538224a860fa777496 fixes this?
Nope. Same problem.
I was able to address some of the issues here: https://github.com/rainstormstudio/treemacs-nerd-icons/pull/3
Nope, still same problem, for me.
So, I believe the issue is that in certain cases, we are showing the icon from the default Treemacs theme, which causes the misalignment. There are two cases:
treemacs-modify-theme
to update the icons, that works, but adding them to the base theme, as in #3, isn't working. Hrm..editorconfig
. This causes us to not overwrite the icon, so we fallback to the default Treemacs one.Just in case this helps anyone else: I noticed that if I specify (setq treemacs-no-png-images t)
when loading treemacs
then the misaligned directory icons from lsp-treemacs
are replaced with +
. It's not perfect, but at least it looks a bit cleaner.
I had the same issue, when I checked variables I saw that icons are stored in hash table. When creating new icons if the keys are collide it override it. The problem is in the extensions part. Original theme hash contains "src-dir"
but you are adding src-dir
those 2 are stored in hash separately so that is why this https://github.com/rainstormstudio/treemacs-nerd-icons/pull/3 change does not fix the problem.
load treemacs-nerd-icons
after lsp-treemacs
solved the problem.
See load-after-lsp-treemacs
Before:
After:
I'm trying out the package for the first time, and I noticed that in my Treemacs, a number of lines are misaligned. For directories, the arrow also vanishes.
Here's an example of the
build
directory looking out of place:It also happens for some files:
Thank you!