emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/eglot 69b8428 01/45: Make eglot-ignored-server-capabili


From: João Távora
Subject: [elpa] externals/eglot 69b8428 01/45: Make eglot-ignored-server-capabilites more user-friendly (#126)
Date: Thu, 22 Nov 2018 19:15:26 -0500 (EST)

branch: externals/eglot
commit 69b8428a86344bc913b5ada491b34e2e6e3a17fb
Author: mkcms <address@hidden>
Commit: João Távora <address@hidden>

    Make eglot-ignored-server-capabilites more user-friendly (#126)
    
    * eglot.el (eglot-ignored-server-capabilites): Add list of possible
      choices to :type, along with a user-friendly description.
---
 eglot.el | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index d2ec929..8014024 100644
--- a/eglot.el
+++ b/eglot.el
@@ -745,7 +745,29 @@ Doubles as an indicator of snippet support."
 You could add, for instance, the symbol
 `:documentHighlightProvider' to prevent automatic highlighting
 under cursor."
-  :type '(repeat symbol))
+  :type '(repeat
+          (choice
+           (symbol :tag "Other")
+           (const :tag "Documentation on hover" :hoverProvider)
+           (const :tag "Code completion" :completionProvider)
+           (const :tag "Function signature help" :signatureHelpProvider)
+           (const :tag "Go to definition" :definitionProvider)
+           (const :tag "Go to type definition" :typeDefinitionProvider)
+           (const :tag "Go to implementation" :implementationProvider)
+           (const :tag "Find references" :referencesProvider)
+           (const :tag "Highlight symbols automatically" 
:documentHighlightProvider)
+           (const :tag "List symbols in buffer" :documentSymbolProvider)
+           (const :tag "List symbols in workspace" :workspaceSymbolProvider)
+           (const :tag "Execute code actions" :codeActionProvider)
+           (const :tag "Code lens" :codeLensProvider)
+           (const :tag "Format buffer" :documentFormattingProvider)
+           (const :tag "Format portion of buffer" 
:documentRangeFormattingProvider)
+           (const :tag "On-type formatting" :documentOnTypeFormattingProvider)
+           (const :tag "Rename symbol" :renameProvider)
+           (const :tag "Highlight links in document" :documentLinkProvider)
+           (const :tag "Decorate color references" :colorProvider)
+           (const :tag "Fold regions of buffer" :foldingRangeProvider)
+           (const :tag "Execute custom commands" :executeCommandProvider))))
 
 (defun eglot--server-capable (&rest feats)
   "Determine if current server is capable of FEATS."



reply via email to

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