Skip to content

Commit 0502bf1

Browse files
committed
Move initialization in treemacs-initialize
1 parent e668656 commit 0502bf1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

lsp-treemacs-generic.el

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,19 +130,19 @@
130130
&optional buffer-name right-click-actions _clear-cache?)
131131
(let ((buffer (get-buffer-create (or buffer-name "*LSP Lookup*"))))
132132
(with-current-buffer buffer
133-
(setq-local treemacs-default-visit-action 'treemacs-RET-action)
134-
(setq-local lsp-treemacs--right-click-actions right-click-actions)
135-
(setq-local face-remapping-alist '((button . default)))
136-
(setq-local window-size-fixed nil)
137-
(setq-local treemacs--width-is-locked nil)
138-
(setq-local treemacs-space-between-root-nodes nil)
139-
(lsp-treemacs--set-mode-line-format buffer title)
140133
(treemacs-initialize 'lsp-treemacs-generic-root
141-
(setq-local lsp-treemacs-tree tree))
142-
(when treemacs-text-scale
143-
(text-scale-increase treemacs-text-scale))
144-
(lsp-treemacs-generic-mode t)
145-
(when expand-depth (lsp-treemacs--expand 'lsp-treemacs-generic-root expand-depth))
134+
(lsp-treemacs--set-mode-line-format buffer title)
135+
(setq-local face-remapping-alist '((button . default)))
136+
(setq-local lsp-treemacs-tree tree)
137+
(setq-local treemacs-default-visit-action 'treemacs-RET-action)
138+
(setq-local lsp-treemacs--right-click-actions right-click-actions)
139+
(setq-local window-size-fixed nil)
140+
(setq-local treemacs--width-is-locked nil)
141+
(setq-local treemacs-space-between-root-nodes nil)
142+
(when treemacs-text-scale
143+
(text-scale-increase treemacs-text-scale))
144+
(lsp-treemacs-generic-mode t)
145+
(when expand-depth (lsp-treemacs--expand 'lsp-treemacs-generic-root expand-depth)))
146146
(current-buffer))))
147147

148148
(provide 'lsp-treemacs-generic)

0 commit comments

Comments
 (0)