diff --git a/configs/base-lsp.el b/configs/base-lsp.el index f0ccd14..b7db6ff 100644 --- a/configs/base-lsp.el +++ b/configs/base-lsp.el @@ -230,6 +230,21 @@ :straight t :hook (java-mode . (lambda () (require 'lsp-java)))) +;; `lsp-mode' and `treemacs' integration +(use-package lsp-treemacs + :defer t + :straight t + :after lsp-mode + :bind (:map lsp-mode-map + ("C-" . lsp-treemacs-errors-list) + ("M-" . lsp-treemacs-symbols) + ("s-" . lsp-treemacs-java-deps-list)) + :init (lsp-treemacs-sync-mode 1) + :config + (with-eval-after-load 'ace-window + (when (boundp 'aw-ignored-buffers) + (push 'lsp-treemacs-symbols-mode aw-ignored-buffers) + (push 'lsp-treemacs-java-deps-mode aw-ignored-buffers)))) (provide 'base-lsp) ;;; base-lsp.el ends here diff --git a/configs/base-treemacs.el b/configs/base-treemacs.el index 2b26a73..ecf08a4 100644 --- a/configs/base-treemacs.el +++ b/configs/base-treemacs.el @@ -56,21 +56,5 @@ magit-post-unstage) . treemacs-magit--schedule-update)) -;; `lsp-mode' and `treemacs' integration -(use-package lsp-treemacs - :defer t - :straight t - :after lsp-mode - :bind (:map lsp-mode-map - ("C-" . lsp-treemacs-errors-list) - ("M-" . lsp-treemacs-symbols) - ("s-" . lsp-treemacs-java-deps-list)) - :init (lsp-treemacs-sync-mode 1) - :config - (with-eval-after-load 'ace-window - (when (boundp 'aw-ignored-buffers) - (push 'lsp-treemacs-symbols-mode aw-ignored-buffers) - (push 'lsp-treemacs-java-deps-mode aw-ignored-buffers)))) - (provide 'base-treemacs) ;;; base-treemacs.el ends here