Skip to content

Commit

Permalink
[lsp-ui-doc] Add option to disable markdown formatting
Browse files Browse the repository at this point in the history
Attempt to address #611
  • Loading branch information
sebastiencs committed May 15, 2021
1 parent efae00e commit 280b8fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lsp-ui-doc.el
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ option."
:type 'boolean
:group 'lsp-ui-doc)

(defcustom lsp-ui-doc-enhanced-markdown t
"Lsp-ui-doc will attempt to better format the markdown documentation."
:type 'boolean
:group 'lsp-ui-doc)

(defface lsp-ui-doc-background
'((((background light)) :background "#b3b3b3")
(t :background "#272A36"))
Expand Down Expand Up @@ -660,7 +665,7 @@ FN is the function to call on click."
'lsp-ui-doc--webkit-resize-callback))
(erase-buffer)
(insert (s-trim string))
(unless (lsp-ui-doc--inline-p)
(unless (or (lsp-ui-doc--inline-p) (not lsp-ui-doc-enhanced-markdown))
(lsp-ui-doc--make-smaller-empty-lines)
(lsp-ui-doc--handle-hr-lines))
(add-text-properties 1 (point) '(line-height 1))
Expand Down

0 comments on commit 280b8fa

Please sign in to comment.