Skip to content

Commit

Permalink
Use code fence for detail
Browse files Browse the repository at this point in the history
  • Loading branch information
wyuenho committed Jan 8, 2025
1 parent 9aadd93 commit 594b24f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lsp-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -501,13 +501,14 @@ Returns resolved completion item details."
((and (equal kind "markdown")
(not (string-match-p (regexp-quote detail?) value)))

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

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

0 comments on commit 594b24f

Please sign in to comment.