- Python 3.9+
basedpyright
installed into your python environment
Search basedpyright
in the zed extensions. Click to install.
Disable pyright
and enable basedpyright
in your settings.
Configure under lsp.basedpyright.settings
as required.
The "binary" setting is optional, if not set, basedpyright
will be searched for in your PATH
.
{
"lsp": {
"basedpyright": {
"binary": {
"path": ".venv/bin/basedpyright-langserver",
"arguments": ["--stdio"]
},
"settings": {
"python": {
"pythonPath": ".venv/bin/python"
},
"basedpyright.analysis": {
"diagnosticMode": "workspace",
"inlayHints": {
"callArgumentNames": false
}
}
}
}
}
}