Skip to content

Commit

Permalink
move zed langauge server config to the language server config section
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Nov 26, 2024
1 parent 5399c39 commit 4f19be4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 15 deletions.
24 changes: 24 additions & 0 deletions docs/configuration/language-server-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,28 @@ args = ["--stdio"]

[language-server.basedpyright.config]
basedpyright.analysis.diagnosticMode = "openFilesOnly"
```

### zed

```json
{
"languages": {
"Python": {
"language_servers": ["basedpyright"]
}
},
"lsp": {
"basedpyright": {
"settings": {
"python": {
"pythonPath": ".venv/bin/python"
},
"basedpyright.analysis": {
"diagnosticMode": "openFilesOnly"
}
}
}
}
}
```
17 changes: 2 additions & 15 deletions docs/installation/ides.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

note that most of these editor plugins require [the language server to be installed](./command-line-and-language-server.md).

for information on how to configure the language server in your IDE, [see here](../configuration/language-server-settings.md#where-do-i-configure-these-settings).

## VSCode / VSCodium

### VSCode
Expand Down Expand Up @@ -146,21 +148,6 @@ Enable and configure basedpyright under Zed settings:
"Python": {
"language_servers": ["basedpyright"]
}
},
"lsp": {
"basedpyright": {
"settings": {
"python": {
"pythonPath": ".venv/bin/python"
},
"basedpyright.analysis": {
"diagnosticMode": "openFilesOnly",
"inlayHints": {
"callArgumentNames": true
}
}
}
}
}
}
```

0 comments on commit 4f19be4

Please sign in to comment.