Skip to content

Commit 6dd0e54

Browse files
committed
Fix sizing and force treemacs-space-between-root-nodes to be nil
1 parent 2a64981 commit 6dd0e54

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

lsp-treemacs.el

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,11 @@ will be rendered an empty line between them."
379379
;; enabled it already) -> `kill-all-local-variables'.
380380
(lsp-treemacs-initialize)
381381
(setq-local treemacs-default-visit-action 'treemacs-RET-action)
382+
(setq-local treemacs--width-is-locked nil)
382383
(setq-local treemacs-space-between-root-nodes
383384
lsp-treemacs-symbols-space-between-root-nodes)
384-
(unless lsp-treemacs--symbols-timer
385-
(setq lsp-treemacs--symbols-timer (run-with-idle-timer 1 t #'lsp-treemacs--update)))
385+
(unless lsp-treemacs--symbols-timer
386+
(setq lsp-treemacs--symbols-timer (run-with-idle-timer 1 t #'lsp-treemacs--update)))
386387
(add-hook 'kill-buffer-hook 'lsp-treemacs--kill-symbols-buffer nil t)))
387388
(with-current-buffer original-buffer (lsp-treemacs--update))))
388389

@@ -544,10 +545,11 @@ will be rendered an empty line between them."
544545
(lsp-treemacs--set-mode-line-format buffer " Java Dependencies ")
545546
(lsp-treemacs-deps-list-mode t)
546547

547-
(setq-local treemacs-space-between-root-nodes nil)
548548
(setq-local treemacs-default-visit-action 'treemacs-RET-action)
549549

550-
(treemacs-LSP-TREEMACS-DEPS-LIST-extension))))
550+
(treemacs-LSP-TREEMACS-DEPS-LIST-extension)
551+
(setq-local treemacs--width-is-locked nil)
552+
(setq-local window-size-fixed nil))))
551553

552554
(defun lsp-treemacs--deps-find-children-for-key (node key)
553555
(->> node
@@ -905,6 +907,9 @@ will be rendered an empty line between them."
905907
(ht)))
906908
(setq-local lsp-treemacs-tree tree)
907909
(setq-local face-remapping-alist '((button . default)))
910+
(setq-local window-size-fixed nil)
911+
(setq-local treemacs--width-is-locked nil)
912+
(setq-local treemacs-space-between-root-nodes nil)
908913
(lsp-treemacs--set-mode-line-format search-buffer title)
909914
(lsp-treemacs-generic-refresh)
910915
(when expand-depth (lsp-treemacs--expand 'LSP-Generic expand-depth))

0 commit comments

Comments
 (0)