Use pyright as single Python LSP recommendation

Replace pylsp primary + pyright alternative with a single pyright
recommendation for Python. Go already correctly recommends gopls.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Bruno Borges
2026-04-09 14:14:43 -04:00
parent 767e165d69
commit a000a83efe

View File

@@ -71,38 +71,17 @@ On macOS with Homebrew, the binary is installed as `jdtls` on `$PATH`.
## Python
**Server**: [pylsp (python-lsp-server)](https://github.com/python-lsp/python-lsp-server)
**Server**: [pyright](https://github.com/microsoft/pyright)
### Install
| OS | Command |
|---------|----------------------------------------|
| Any | `pip install python-lsp-server` |
| macOS | `brew install python-lsp-server` |
| OS | Command |
|---------|----------------------------|
| Any | `npm install -g pyright` |
| Any | `pip install pyright` |
### Config snippet
```json
{
"python": {
"command": "pylsp",
"args": [],
"fileExtensions": {
".py": "python"
}
}
}
```
### Alternative: Pyright
**Server**: [pyright](https://github.com/microsoft/pyright) (via [basedpyright](https://github.com/DetachHead/basedpyright) or [pyright](https://www.npmjs.com/package/pyright))
| OS | Command |
|---------|----------------------------------------------------|
| Any | `npm install -g pyright` |
| Any | `pip install basedpyright` (for basedpyright fork) |
```json
{
"python": {