Skip to content

Commit 28cb228

Browse files
committed
Do not fontify detail in documentation
1 parent c9d5c88 commit 28cb228

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
@@ -483,9 +483,13 @@ The MARKERS and PREFIX value will be attached to each candidate."
483483
((and (equal kind "markdown")
484484
(not (string-match-p (regexp-quote detail?) value)))
485485

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

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

0 commit comments

Comments
 (0)