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 1, 2024
1 parent 08b801e commit 5461d9c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lsp-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,14 @@ 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 5461d9c

Please sign in to comment.