mirror of
https://github.com/github/awesome-copilot.git
synced 2026-04-13 19:55:56 +00:00
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:
@@ -71,38 +71,17 @@ On macOS with Homebrew, the binary is installed as `jdtls` on `$PATH`.
|
|||||||
|
|
||||||
## Python
|
## Python
|
||||||
|
|
||||||
**Server**: [pylsp (python-lsp-server)](https://github.com/python-lsp/python-lsp-server)
|
**Server**: [pyright](https://github.com/microsoft/pyright)
|
||||||
|
|
||||||
### Install
|
### Install
|
||||||
|
|
||||||
| OS | Command |
|
| OS | Command |
|
||||||
|---------|----------------------------------------|
|
|---------|----------------------------|
|
||||||
| Any | `pip install python-lsp-server` |
|
| Any | `npm install -g pyright` |
|
||||||
| macOS | `brew install python-lsp-server` |
|
| Any | `pip install pyright` |
|
||||||
|
|
||||||
### Config snippet
|
### 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
|
```json
|
||||||
{
|
{
|
||||||
"python": {
|
"python": {
|
||||||
|
|||||||
Reference in New Issue
Block a user