|
130 | 130 | &optional buffer-name right-click-actions _clear-cache?) |
131 | 131 | (let ((buffer (get-buffer-create (or buffer-name "*LSP Lookup*")))) |
132 | 132 | (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) |
140 | 133 | (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))) |
146 | 146 | (current-buffer)))) |
147 | 147 |
|
148 | 148 | (provide 'lsp-treemacs-generic) |
|
0 commit comments