branch: externals/elpa
commit c9230e8e705cb53ba7feb8ab4593ea931edc5c6b
Author: Felicián Németh <[email protected]>
Commit: João Távora <[email protected]>
Close #408: Declare markdown support iff gfm-view-mode installed
* eglot.el (eglot-client-capabilities): Support markdown only when
gfm-view-mode is installed.
---
eglot.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/eglot.el b/eglot.el
index bdc4cd0..596a82d 100644
--- a/eglot.el
+++ b/eglot.el
@@ -527,7 +527,10 @@ treated as in `eglot-dbind'."
:json-false))
:contextSupport t)
:hover (list :dynamicRegistration :json-false
- :contentFormat ["markdown" "plaintext"])
+ :contentFormat
+ (if (fboundp 'gfm-view-mode)
+ ["markdown" "plaintext"]
+ ["plaintext"]))
:signatureHelp (list :dynamicRegistration :json-false
:signatureInformation
`(:parameterInformation