- 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.
{
"languages": {
"Python": {
"language_servers": ["basedpyright", "!pyright"]
},
}
Configure under lsp.basedpyright.settings
as required.
{
"lsp": {
"basedpyright": {
"settings": {
"python": {
"pythonPath": ".venv/bin/python"
},
"basedpyright.analysis": {
"diagnosticMode": "workspace",
"inlayHints": {
"callArgumentNames": false
}
}
}
}
}
}