From 6ea0216c53533b76120574b7892a021b037389cf Mon Sep 17 00:00:00 2001 From: Michal Krzywkowski Date: Mon, 5 Nov 2018 19:42:32 +0100 Subject: [PATCH] * eglot.el (eglot-client-capabilities): mention supported symbolkinds. --- lisp/progmodes/eglot.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 22f509b81b2..0a789702c7d 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -196,6 +196,8 @@ let the buffer grow forever." "JSON object to send under `initializationOptions'" (:method (_s) nil)) ; blank default +(defvar eglot--symbol-kind-names) + (cl-defgeneric eglot-client-capabilities (server) "What the EGLOT LSP client supports for SERVER." (:method (_s) @@ -221,7 +223,11 @@ let the buffer grow forever." :signatureHelp `(:dynamicRegistration :json-false) :references `(:dynamicRegistration :json-false) :definition `(:dynamicRegistration :json-false) - :documentSymbol `(:dynamicRegistration :json-false) + :documentSymbol (list + :dynamicRegistration :json-false + :symbolKind `(:valueSet + [,@(mapcar + #'car eglot--symbol-kind-names)])) :documentHighlight `(:dynamicRegistration :json-false) :codeAction (list :dynamicRegistration :json-false -- 2.39.2