Move lsp-treemas to base-lsp.el

This commit is contained in:
kj 2022-11-18 22:56:57 -04:00
parent 2d02d9e5bc
commit 5cf22a5451
2 changed files with 15 additions and 16 deletions

View File

@ -230,6 +230,21 @@
:straight t :straight t
:hook (java-mode . (lambda () (require 'lsp-java)))) :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-<f8>" . lsp-treemacs-errors-list)
("M-<f8>" . lsp-treemacs-symbols)
("s-<f8>" . 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) (provide 'base-lsp)
;;; base-lsp.el ends here ;;; base-lsp.el ends here

View File

@ -56,21 +56,5 @@
magit-post-unstage) magit-post-unstage)
. treemacs-magit--schedule-update)) . 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-<f8>" . lsp-treemacs-errors-list)
("M-<f8>" . lsp-treemacs-symbols)
("s-<f8>" . 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) (provide 'base-treemacs)
;;; base-treemacs.el ends here ;;; base-treemacs.el ends here