You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/installation/ides.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,8 +190,38 @@ Enable and configure basedpyright under Zed settings:
190
190
{
191
191
"languages": {
192
192
"Python": {
193
-
"language_servers": ["basedpyright"]
193
+
"language_servers": [
194
+
"basedpyright",
195
+
// disable the other python language servers
196
+
"!pyright",
197
+
"!pylsp"
198
+
]
194
199
}
195
200
}
196
201
}
197
202
```
203
+
204
+
??? tip "if adding basedpyright as a development dependency to your project"
205
+
206
+
we recommend using project settings (`.zed/settings.json`) with the following:
207
+
208
+
- set the path to the language server located inside your venv so that it uses the correct version of basedpyright instead of a globally installed version
209
+
- add basedpyright to `auto_install_extensions` so that it's automatically installed for other contributors working on your project
210
+
211
+
```json title=".zed/settings.json"
212
+
{
213
+
"lsp": {
214
+
"basedpyright": {
215
+
"binary": {
216
+
"path": ".venv/bin/basedpyright-langserver",
217
+
"arguments": ["--stdio"]
218
+
}
219
+
}
220
+
},
221
+
"auto_install_extensions": {
222
+
"basedpyright": true
223
+
}
224
+
}
225
+
```
226
+
227
+
you should commit this file so that these settings are automatically applied for other contributors.
0 commit comments