]> git.eshelyaron.com Git - emacs.git/commitdiff
Transpose order of "pylsp" and "pyls" alternatives
authorJoão Távora <joaotavora@gmail.com>
Sun, 13 Jun 2021 22:07:42 +0000 (23:07 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 13 Jun 2021 22:07:42 +0000 (23:07 +0100)
When operating remotely, searching for an executable that don't exist
takes longer than usual.  Better to put the most likely server first
in the list to minimize the slowdown.

* eglot.el (eglot-server-programs): Transpose python mode alternatives

GitHub-reference: per https://github.com/joaotavora/eglot/issues/703

lisp/progmodes/eglot.el

index 927009a8a9fc12b27fe7bf77d08b766ab41d02cb..83bd1024a00326626ae54ce3d1a4bc934a483f6e 100644 (file)
@@ -138,7 +138,7 @@ chosen (interactively or automatically)."
 
 (defvar eglot-server-programs `((rust-mode . (eglot-rls "rls"))
                                 (python-mode
-                                 . ,(eglot-alternatives '("pyls" "pylsp")))
+                                 . ,(eglot-alternatives '("pylsp" "pyls")))
                                 ((js-mode typescript-mode)
                                  . ("typescript-language-server" "--stdio"))
                                 (sh-mode . ("bash-language-server" "start"))