From 5461d9c7994b0876f7c7a49076a72eda7f73e862 Mon Sep 17 00:00:00 2001 From: Jimmy Yuen Ho Wong Date: Sun, 1 Dec 2024 00:17:29 +0000 Subject: [PATCH] Do not fontify detail in documentation --- lsp-completion.el | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lsp-completion.el b/lsp-completion.el index ed184487bd..2007217e9e 100644 --- a/lsp-completion.el +++ b/lsp-completion.el @@ -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?)))