/lsp-treemacs

lsp-mode :heart: treemacs

Primary LanguageEmacs LispGNU General Public License v3.0GPL-3.0

https://github.com/emacs-lsp/lsp-treemacs/workflows/CI/badge.svg https://melpa.org/packages/lsp-treemacs-badge.svg https://stable.melpa.org/packages/lsp-treemacs-badge.svg

Table of Contents

Summary

Integration between lsp-mode and treemacs and implementation of treeview controls using treemacs as a tree renderer.

Synchronization

To enable bidirectional synchronization of lsp workspace folders and treemacs projects.

(lsp-treemacs-sync-mode 1)

Views

lsp-treemacs-errors-list

Displays tree like error list structure.

Commands

Screenshot

screenshots/error-list.png

  • lsp-treemacs-quick-fix or press x when you are in Error List view - offer quickfixes for the error at point.

lsp-treemacs-symbols

Displays symbols information.

Screenshot

screenshots/symbols-list.gif

lsp-treemacs-references/lsp-treemacs-implementations

Display references/implementations using tree view:

Screenshot

screenshots/references.gif

lsp-treemacs-call-hierarchy

Display call hierarchy. Use C-u M-x lsp-treemacs-call-hierarchy to display outgoing call hierarchy.

Screenshot

screenshots/call-hierarchy.gif

lsp-treemacs-type-hierarchy

Display type hierarchy.

lsp-treemacs-deps-list

Browse java dependencies, namespaces, files, etc.

Commands

  • lsp-treemacs-java-deps-follow - select the current editor in the dependency
  • lsp-treemacs-java-deps-refresh - refresh the view. Bound to r.

Screenshot

screenshots/dependencies.gif