fix(java): add lsp-treemacs

lsp-java depends on lsp-treemacs without declaring it a dependency, so
lsp-users using :lang (java +lsp) users without :ui (treemacs +lsp) will
experience file-missing errors when lsp-java is loaded.
This commit is contained in:
Henrik Lissner 2024-03-17 08:01:37 -04:00
parent 85ce866953
commit e8897421b1
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -14,4 +14,10 @@
(when (modulep! +lsp)
(unless (modulep! :tools lsp +eglot)
;; HACK: lsp-java depends on lsp-treemacs without declaring it as a
;; dependency, thereby throwing errors if :ui (treemacs +lsp) isn't
;; enabled (i.e. lsp-treemacs isn't installed). This needs to be tackled
;; upstream, but for now:
(unless (alist-get 'lsp-treemacs doom-packages)
(package! lsp-treemacs :pin "e54e74deb8150964e3c3024e1ec14295a34e2a3b"))
(package! lsp-java :pin "c962a3b3ac2beabdf1ce83b815396d6c38e3cefa")))