Skip to content

Commit

Permalink
Per joaotavora/eglot#703: transpose order of "pylsp" and "pyls" alter…
Browse files Browse the repository at this point in the history
…natives

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
  • Loading branch information
joaotavora committed Jun 13, 2021
1 parent f576fc4 commit 50ba400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/progmodes/eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 50ba400

Please sign in to comment.