Skip to content

Commit 1f34f8f

Browse files
committed
Do not fontify detail in documentation
1 parent 2cd6033 commit 1f34f8f

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

489-
(lsp--render-string
490-
(concat "```\n" detail? "\n```\n---\n" value)
491-
kind)))))
489+
(concat
490+
(propertize detail? 'face 'fixed-pitch)
491+
(lsp--render-string
492+
(concat
493+
"\n---\n"
494+
value)
495+
kind))))))
492496

493497
((and (stringp documentation?)
494498
(not (string-match-p (regexp-quote detail?) documentation?)))

0 commit comments

Comments
 (0)