Python
warning: this documentation is a work in progress.
python-mode supports:
- syntax highlighting
M-x run-pythoncommandM-x python-eval-region- LSP with
python-lsp-server
This is the default Python LSP config.
Lem will try to install python-lsp-server for you with
pip install python-lsp-server
(in-package :lem-python-mode/lsp-config)
(lem-lsp-mode:define-language-spec (python-spec lem-python-mode:python-mode)
:language-id "python"
:root-uri-patterns '("setup.py" "pyproject.toml" "requirements.txt" "poetry.lock")
:command '("pylsp")
:install-command "pip install python-lsp-server"
:readme-url "https://github.com/python-lsp/python-lsp-server"
:connection-mode :stdio)
See: