Skip to content

Commit fcea313

Browse files
authored
Improve signature help content (#2639)
* Make signature help cleaner * use not cl-rest
1 parent 8a3ca6f commit fcea313

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lsp-mode.el

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5022,11 +5022,13 @@ It will show up only if current point has signature help."
50225022
(active-signature? (or lsp--signature-last-index active-signature? 0))
50235023
(_ (setq lsp--signature-last-index active-signature?))
50245024
((signature &as &SignatureInformation? :label :parameters?) (seq-elt signatures active-signature?))
5025-
(prefix (concat (propertize (format " %s/%s"
5026-
(1+ active-signature?)
5027-
(length signatures))
5028-
'face 'success)
5029-
" │ "))
5025+
(prefix (if (not (cl-rest signatures))
5026+
""
5027+
(concat (propertize (format " %s/%s"
5028+
(1+ active-signature?)
5029+
(length signatures))
5030+
'face 'success)
5031+
" ")))
50305032
(method-docs (when
50315033
(and lsp-signature-render-documentation
50325034
(or (not (numberp lsp-signature-doc-lines)) (< 0 lsp-signature-doc-lines)))

0 commit comments

Comments
 (0)