Skip to content

Commit

Permalink
Do not fontify detail in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
wyuenho committed Dec 2, 2024
1 parent c9d5c88 commit 28cb228
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lsp-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,13 @@ The MARKERS and PREFIX value will be attached to each candidate."
((and (equal kind "markdown")
(not (string-match-p (regexp-quote detail?) value)))

(lsp--render-string
(concat "```\n" detail? "\n```\n---\n" value)
kind)))))
(concat
(propertize detail? 'face 'fixed-pitch)
(lsp--render-string
(concat
"\n---\n"
value)
kind))))))

((and (stringp documentation?)
(not (string-match-p (regexp-quote detail?) documentation?)))
Expand Down

0 comments on commit 28cb228

Please sign in to comment.