Home / Python / Python / Installation
Language server
source ~/.venv/bin/activate
pip install "python-lsp-server[all]"
N.B. [all] installs support for all 3rd-party tooling.
(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs
'((python-mode python-ts-mode) .
("~/.venv/bin/pylsp"))))
(with-eval-after-load 'python
(add-hook 'python-mode-hook #'eglot-ensure)
(add-hook 'python-mode-hook #'outline-minor-mode))