Open eeshugerman opened 3 years ago
The icons that are needlessly overridden in lsp-treemacs-icons would need to be examined
@nbfalcon so is this just a matter of comparing the "Default" icon list in lsp-treemacs vs that in treemacs? not sure i'm on the right track.
That is a start. However, we must also consider all-the-icons
, which might have additional icons.
hmm, might be on the wrong track here. it seems my test of your triage branch was flawed: if i checkout upstream/master the issue is still "resolved", so the commented-out treemacs-modify-theme
form doesn't seem to be what's making the difference.
rather it would seem to have something to do with how i'm installing lsp-treemacs
from my git clone, which is by adding (package-install-file "~/devel/misc/lsp-treemacs")
in my dotspacemacs/user-config
, just before (doom-themes-treemacs-config)
.
🤔 i'll keep experimenting
edit: replacing (package-install-file "~/devel/misc/lsp-treemacs")
with (package-reinstall 'lsp-treemacs)
also works
Same issue here. If not loading lsp-treemacs-themes
, the issue disappears.
I think it should not modify "Default" theme directly. Creating a new one will avoid the conflicts.
@eeshugerman have you reloaded lsp-treemacs-themes
?
reloading the library after the issue is visible does nothing, but if i do (load-library "lsp-treemacs-themes")
in my config (where i was reinstalling before) and restart, the issue never appears.
that's actually a very pleasant workaround! :)
My workaround is
(with-eval-after-load 'lsp-treemacs
(doom-themes-treemacs-config))
Same issue with a vanilla Emacs installation:
LICENSE
and poetry.lock
icons are too big and moved to the left.
I guess previous workarounds are for Doom Emacs, I have tried both workarounds and didn't help.
Thanks
@ig-perez The workaround is loading doom-themes-ext-treemacs
after lsp-treemacs
. Try evaluating the buffer of doom-themes-ext-treemacs.
I tried @seagle0128 original workaround on Doom Emacs and it didn't seem to help.
(with-eval-after-load 'lsp-treemacs (doom-themes-treemacs-config))
However, it seems the following worked:
(after! lsp-treemacs
(load-library "doom-themes-ext-treemacs"))
Thanks @seagle0128 I tried:
(with-eval-after-load 'lsp-treemacs (doom-themes-ext-treemacs))
But I got: Error processing message (void-function doom-themes-ext-treemacs)
@jul1u5 are you under Doom right?
@ig-perez Yes, I am using Doom and I think I got the same error with that workaround. Have you tried using the load-library one?
Hey @jul1u5 I tried and well, in some way it solved the problem by disappearing the icons:
So, I'm still with this issue.
Sorry, I don't see what's wrong here. Should .properties or .lock files have custom icons?
It looks the same for me, I thought that's how the icons are supposed to look like 😀
EDIT: Oh, I see there's a red lock icon for .lock files
Yeah, these are the icons:
They look good, the only thing is the size/alignment. They should be the same size and at the same level of pyproject.toml
:)
Thanks @seagle0128 I tried:
(with-eval-after-load 'lsp-treemacs (doom-themes-ext-treemacs))
But I got:
Error processing message (void-function doom-themes-ext-treemacs)
@jul1u5 are you under Doom right?
My configurations:
(use-package doom-themes
:custom-face
(doom-modeline-buffer-file ((t (:inherit (mode-line bold)))))
:custom
(doom-themes-treemacs-theme "doom-colors")
:init (centaur-load-theme centaur-theme t)
:config
;; Enable flashing mode-line on errors
(doom-themes-visual-bell-config)
;; Enable customized theme
;; FIXME https://github.com/emacs-lsp/lsp-treemacs/issues/89
(with-eval-after-load 'lsp-treemacs
(doom-themes-treemacs-config)))
Use the latest doom-themes
.
Thanks @seagle0128 , all of this is confusing. Let me try to summarize.
treemacs
default theme looks like this:
The yellow folder icons are dissonant with doom-themes
, so I guess it is better to enable the configuration for treeemacs
with (doom-themes-treemacs-config)
from the beggining, not only after LSP.
But when I do that, the icons look unaligned as shown initially:
The proposed fix will keep original treemacs
theme and just activates the doom-themes
after LSP mode. This is odd since I use treemacs
not only for LSP, I'd prefer a smother experience keeping the same doom-themes
look and feel wherever I go in Emacs. Moreover it seems it is replacing the original treemacs
icons with smaller ones:
So the thing is (IMO):
treemacs
icons (all-the-icons
I guess)Now I'm doubtful, is this an issue with treemacs
or doom-themes
. Which package is replacing the treemacs
icons?
@ig-perez The fact is if disabling or uninstalling lsp-treemacs
, all icons are correct. There should be some conflicts.
original issue: https://github.com/hlissner/emacs-doom-themes/issues/500
looks like this:
should look like this:
![Screen Shot 2021-01-20 at 12 41 30 PM](https://user-images.githubusercontent.com/25518211/105213721-0de19980-5b1d-11eb-82d4-4f5544b3092a.png)
the problem is not present until
lsp-mode
is enabled.note: the discussion here picks up where we left off in what turned out to be an unrelated
lsp-treemacs
issue: https://github.com/emacs-lsp/lsp-treemacs/issues/66