Update python readme wrt mspyls & pyls

Since lsp-python-ms changed its priority from 1 to -1 in
emacs-lsp/lsp-python-ms@396c25c, it is no longer the first choice when
both is available.
This commit is contained in:
Henrik Lissner 2020-05-09 01:13:04 -04:00
parent 1413c02b25
commit 6780d7c816
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -79,14 +79,19 @@ This module has no direct prerequisites. Here are some of its soft dependencies.
** Language Server Protocol Support
This module must be enabled with the =+lsp= flag, and the =:tools lsp= module
must be enabled. LSP will try mspyls, then pyls; whichever is available.
must be enabled. LSP will try pyls then mspyls; the first that is available.
mypyls can be installed with ~M-x lsp-install-server~ after opening a python
buffer.
Alternatively, use the [[https://pypi.org/project/python-language-server/][Python Language Server]] instead. ~pip install
*To use [[https://pypi.org/project/python-language-server/][Python Language Server]] (pyls)* install it with ~pip install
'python-language-server[all]'~
*To use mspyls*, install it with ~M-x lsp-install-server~ and add this to your
private config.el:
#+BEGIN_SRC elisp
(after! lsp-python-ms
(set-lsp-priority! 'mspyls 1))
#+END_SRC
* Features
This module supports LSP. It requires installation of [[https://pypi.org/project/python-language-server/][Python Language
Server]] or [[https://github.com/Microsoft/python-language-server][Microsoft Language Server]], see [[Language Server Protocol Support][LSP Support]].