[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot 17ec29b 14/69: Per #177: consider mode derivation
From: |
João Távora |
Subject: |
[elpa] externals/eglot 17ec29b 14/69: Per #177: consider mode derivation when guessing servers |
Date: |
Sun, 20 Oct 2019 08:21:43 -0400 (EDT) |
branch: externals/eglot
commit 17ec29b4382d8c85190fa541d306ea5c4d38bf8b
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Per #177: consider mode derivation when guessing servers
* eglot.el (eglot-server-programs): Remove js2-mode and rjsx-mode.
(eglot--guess-contact): Use provided-mode-derived-p
---
eglot.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/eglot.el b/eglot.el
index 799ab10..2d1c367 100644
--- a/eglot.el
+++ b/eglot.el
@@ -81,8 +81,6 @@
(defvar eglot-server-programs '((rust-mode . (eglot-rls "rls"))
(python-mode . ("pyls"))
((js-mode
- js2-mode
- rjsx-mode
typescript-mode)
. ("javascript-typescript-stdio"))
(sh-mode . ("bash-language-server" "start"))
@@ -635,8 +633,9 @@ be guessed."
(project (or (project-current) `(transient . ,default-directory)))
(guess (cdr (assoc managed-mode eglot-server-programs
(lambda (m1 m2)
- (or (eq m1 m2)
- (and (listp m1) (memq m2 m1)))))))
+ (cl-find
+ m2 (if (listp m1) m1 (list m1))
+ :test #'provided-mode-derived-p)))))
(guess (if (functionp guess)
(funcall guess interactive)
guess))
- [elpa] externals/eglot updated (35597d2 -> 33a4f86), João Távora, 2019/10/20
- [elpa] externals/eglot 4398934 01/69: Fix #198: prevent Eldoc flicker when moving around, João Távora, 2019/10/20
- [elpa] externals/eglot d6a6de7 03/69: Fix test failure introduced by previous commit, João Távora, 2019/10/20
- [elpa] externals/eglot e69cca9 06/69: * README.md: Remove funny UTF character., João Távora, 2019/10/20
- [elpa] externals/eglot 9377988 02/69: Per #198: Show large docs in help buffer instead of echo are by default, João Távora, 2019/10/20
- [elpa] externals/eglot e5e5125 04/69: Rename new defcustoms with friendlier names, João Távora, 2019/10/20
- [elpa] externals/eglot cba3987 07/69: README.md: minor cosmetic tweaks, João Távora, 2019/10/20
- [elpa] externals/eglot dc371b8 08/69: Display truncated docstring if too large for echo area, João Távora, 2019/10/20
- [elpa] externals/eglot 17ec29b 14/69: Per #177: consider mode derivation when guessing servers,
João Távora <=
- [elpa] externals/eglot fcb8ab6 11/69: Per #121: fix bug introduced by commit fixing this issue, João Távora, 2019/10/20
- [elpa] externals/eglot 5fc7ecc 10/69: Add built-in support for Dart's dart_language_server, João Távora, 2019/10/20
- [elpa] externals/eglot 1671dc4 12/69: Fix #209: protect against null messages from eldoc, João Távora, 2019/10/20
- [elpa] externals/eglot dbf2dd2 20/69: * eglot.el (xref-backend-references): Don't use return-from., João Távora, 2019/10/20
- [elpa] externals/eglot 3ecdef1 09/69: Fix #201: handle label offsets in ParameterInformation, João Távora, 2019/10/20
- [elpa] externals/eglot 40a3d8c 16/69: Fix broken python formatting tests, João Távora, 2019/10/20
- [elpa] externals/eglot 1c6c30f 17/69: Disable another test on Travis, João Távora, 2019/10/20
- [elpa] externals/eglot d65d139 15/69: Don't teardown company if started via trigger chars, João Távora, 2019/10/20
- [elpa] externals/eglot 7d6e3cf 21/69: Per #220: unbreak build, João Távora, 2019/10/20
- [elpa] externals/eglot b868ee1 23/69: Fix #260: Only consider Eglot's own diagnostics in eglot-code-actions, João Távora, 2019/10/20