Skip to content

Commit 00d867e

Browse files
committed
Add wrapper for treemacs-get-icon-value
1 parent fc47d96 commit 00d867e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lsp-treemacs.el

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,16 +444,20 @@
444444
(25 'operator)
445445
(26 'template)))
446446

447+
(defun lsp-treemacs-symbol-icon (kind)
448+
"Get icon for `kind'."
449+
(treemacs-get-icon-value (lsp-treemacs-symbol-kind->icon kind)
450+
nil
451+
lsp-treemacs-theme))
452+
447453
(defun lsp-treemacs--symbol-icon (symbol expanded)
448454
"Get the symbol for the the kind."
449455
(-let [(&DocumentSymbol :kind :children?) symbol]
450456
(concat
451457
(if (seq-empty-p children?)
452458
" "
453459
(if expanded "" ""))
454-
(treemacs-get-icon-value (lsp-treemacs-symbol-kind->icon kind)
455-
nil
456-
lsp-treemacs-theme))))
460+
(lsp-treemacs-symbol-icon kind))))
457461

458462
(treemacs-define-expandable-node lsp-symbol
459463
:icon-open-form (lsp-treemacs--symbol-icon (treemacs-button-get node :symbol) t)

0 commit comments

Comments
 (0)