From 64ffc80e6fb3f3e77dc55149b24e9e7225ceea74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Wed, 1 Sep 2021 10:17:24 +0100 Subject: [PATCH] Fix typo in user-visible eglot-ignored-server-capabilities The name with the typo, eglot-ignored-server-capabilites, is still supported. Per https://github.com/joaotavora/eglot/issues/724. * NEWS.md: Mention change * eglot.el (eglot-ignored-server-capabilities): New defcustom. --- lisp/progmodes/eglot.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 4667526c371..5fdc25327f4 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1386,7 +1386,10 @@ Doubles as an indicator of snippet support." (font-lock-ensure) (string-trim (filter-buffer-substring (point-min) (point-max)))))) -(defcustom eglot-ignored-server-capabilites (list) +(define-obsolete-variable-alias 'eglot-ignored-server-capabilites + 'eglot-ignored-server-capabilities "1.8") + +(defcustom eglot-ignored-server-capabilities (list) "LSP server capabilities that Eglot could use, but won't. You could add, for instance, the symbol `:documentHighlightProvider' to prevent automatic highlighting -- 2.39.2