Skip to content

Type to search extensions

BasedPyright

v0.1.3

Python type checking and language server support from BasedPyright.

Updated 1 year agoArchived
69k downloads 48 stars Repository ↗

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+
  • basedpyright installed 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
          }
        }
      }
    }
  }
}
ZedExt An unofficial community project. Not affiliated with Zed Industries.

Data from Zed’s extension registry and GitHub · updated