Skip to content

Commit

Permalink
[lsp-ui-doc] Add option to disable markdown formatting (#612)
Browse files Browse the repository at this point in the history
Attempt to address #611

Co-authored-by: Jen-Chieh Shen <jcs090218@gmail.com>
  • Loading branch information
sebastiencs and jcs090218 committed Nov 1, 2021
1 parent d08c552 commit dd4c181
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 @@ -146,6 +146,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)

(defcustom lsp-ui-doc-text-scale-level 0
"Text scale amount for doc buffer."
:type 'integer
Expand Down Expand Up @@ -694,7 +699,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--fill-document)
(lsp-ui-doc--make-smaller-empty-lines)
(lsp-ui-doc--handle-hr-lines))
Expand Down

0 comments on commit dd4c181

Please sign in to comment.