From aa8653cc3f0ecc0c0652fedc7e9d7835aabee8ed Mon Sep 17 00:00:00 2001 From: Michal Krzywkowski Date: Mon, 15 Oct 2018 22:58:14 +0200 Subject: [PATCH] Eglot-ignored-server-capabilites: prefer all choices over "other" Previously the "Other" choice matched every value, so it was always shown in the customize buffer. * eglot.el (eglot-ignored-server-capabilites): Make the "Other" choice the last possible option. --- lisp/progmodes/eglot.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 8014024ecd8..b6606830165 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -747,7 +747,6 @@ You could add, for instance, the symbol under cursor." :type '(repeat (choice - (symbol :tag "Other") (const :tag "Documentation on hover" :hoverProvider) (const :tag "Code completion" :completionProvider) (const :tag "Function signature help" :signatureHelpProvider) @@ -767,7 +766,8 @@ under cursor." (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)))) + (const :tag "Execute custom commands" :executeCommandProvider) + (symbol :tag "Other")))) (defun eglot--server-capable (&rest feats) "Determine if current server is capable of FEATS." -- 2.39.2