Skip to content

Commit b072fe5

Browse files
committed
Do not fontify detail in documentation
1 parent 8259572 commit b072fe5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lsp-completion.el

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,13 @@ The MARKERS and PREFIX value will be attached to each candidate."
482482
((and (equal kind "markdown")
483483
(not (string-match-p (regexp-quote detail?) value)))
484484

485-
(lsp--render-string
486-
(concat "```\n" detail? "\n```\n---\n" value)
487-
kind)))))
485+
(concat
486+
(propertize detail? 'face 'fixed-pitch)
487+
(lsp--render-string
488+
(concat
489+
"\n---\n"
490+
value)
491+
kind))))))
488492

489493
((and (stringp documentation?)
490494
(not (string-match-p (regexp-quote detail?) documentation?)))

0 commit comments

Comments
 (0)