]> git.eshelyaron.com Git - emacs.git/commitdiff
* eglot.el (eglot-client-capabilities): mention supported symbolkinds.
authorMichal Krzywkowski <k.michal@zoho.com>
Mon, 5 Nov 2018 18:42:32 +0000 (19:42 +0100)
committerMichal Krzywkowski <k.michal@zoho.com>
Wed, 7 Nov 2018 11:09:06 +0000 (12:09 +0100)
lisp/progmodes/eglot.el

index 22f509b81b28bacb16dd2d65193d912ccf01bb64..0a789702c7d9e48723ca2003ccdee69a2104949d 100644 (file)
@@ -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