Skip to content

Commit ca80749

Browse files
committed
Do not expand treemacs if symbols are more than 30
1 parent 4835fc4 commit ca80749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp-treemacs.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@
452452
(treemacs-update-node '(:custom LSP-Symbols) t)))
453453
(error))
454454

455-
(when lsp-treemacs--symbols
455+
(when (and lsp-treemacs--symbols (> 30 (length lsp-treemacs--symbols)))
456456
(lsp-treemacs--expand '(:custom LSP-Symbols)))
457457
(setq-local header-line-format
458458
(unless lsp-treemacs--symbols

0 commit comments

Comments
 (0)