bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61373: Eglot patch: add customization to prefer plaintext for :hover


From: JD Smith
Subject: bug#61373: Eglot patch: add customization to prefer plaintext for :hover
Date: Wed, 8 Feb 2023 16:33:16 -0500

Some LSP servers badly mangle their responses to :hover into markdown that gfm-viewmode cannot render.  See this discussion, for example. 

The attached patch adds a new custom option `eglot-prefer-plaintext’ which configures the server to use plaintext for :hover responses, even if Emacs could in principle handle markdown.  Unfortunately, the popular Python LSP server in question (pyright) is not interested in improvement to its generated markdown (since it "works in VS-Code”).  Luckily the plaintext docstrings of most packages are very nicely formatted. 

Attachment: eglot_plaintext.patch
Description: Binary data



reply via email to

[Prev in Thread] Current Thread [Next in Thread]