Basedpyright Extension for Zed
in case that basedpyright are now built-in, i think we all no longer need this version :p
Pre-requisites
- Python 3.9+
basedpyrightinstalled into your python environment
Installation
Search basedpyright in the zed extensions. Click to install.
Enable
Disable pyright and enable basedpyright in your settings.
{
"languages": {
"Python": {
"language_servers": ["basedpyright", "!pyright"]
},
}Configure
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
}
}
}
}
}
}