Skip to content

Commit

Permalink
Bring back treemacs, with lsp-treemacs. Cool and useful!
Browse files Browse the repository at this point in the history
  • Loading branch information
adityaathalye committed Jan 31, 2024
1 parent d217259 commit 896f365
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -669,14 +669,26 @@ and for auto-saves we can restore from.")
:after lsp-mode
:commands lsp-ivy-workspace-symbol)

;; treemacs is cool, but I'm not sure I want it yet.
;; treemacs is pretty useful for polylith-like multi-projects
;; cf: https://github.com/emacs-lsp/lsp-treemacs
;; and https://github.com/Alexander-Miller/treemacs
;; (use-package lsp-treemacs
;; :after lsp-mode
;; :commands lsp-treemacs-errors-list
;; :config
;; (setq treemacs-space-between-root-nodes nil))
(use-package treemacs
:bind
(:map global-map
("M-0" . treemacs-select-window))
:config
(setq treemacs-file-event-delay 500 ; default is 2000
treemacs-file-follow-delay 0.1 ; default is 0.2
treemacs-display-in-side-window t)
:blackout)

(use-package lsp-treemacs
:after lsp-mode
:commands lsp-treemacs-errors-list
:config
(setq treemacs-space-between-root-nodes nil
lsp-treemacs-sync-mode +1)
:blackout)

;; dap-mode, optionally to use LANGUAGE-specific debuggers
;; cf. https://emacs-lsp.github.io/lsp-mode/page/installation/#use-package
Expand Down

0 comments on commit 896f365

Please sign in to comment.