Skip to content

Commit

Permalink
Allow customization of signature function argument highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
wyuenho committed Nov 11, 2024
1 parent a49b386 commit c3e9066
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -5855,6 +5855,11 @@ It will show up only if current point has signature help."
(list lsp-signature-doc-lines))))
(lsp-signature-activate))

(defface lsp-signature-highlight-function-argument
'((t :inherit eldoc-highlight-function-argument))
"The face to use to highlight function arguments in signatures."
:group 'lsp-mode)

(defun lsp--signature->message (signature-help)
"Generate eldoc message from SIGNATURE-HELP response."
(setq lsp--signature-last signature-help)
Expand Down Expand Up @@ -5900,7 +5905,7 @@ It will show up only if current point has signature help."
(end (if (stringp selected-param-label)
(+ start (length selected-param-label))
(cl-second selected-param-label))))
(add-face-text-property start end 'eldoc-highlight-function-argument nil label)))
(add-face-text-property start end 'lsp-signature-highlight-function-argument nil label)))
(concat prefix label method-docs))))

(defun lsp-signature ()
Expand Down

0 comments on commit c3e9066

Please sign in to comment.