From e25e9a8e2010a9e7630297938f4a53af8fa2fad3 Mon Sep 17 00:00:00 2001 From: Jaagup Averin Date: Sun, 24 Nov 2024 18:04:39 +0200 Subject: [PATCH] Add installation instructions for Zed IDE. --- docs/installation/ides.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/installation/ides.md b/docs/installation/ides.md index 9169c23eac..0add27c180 100644 --- a/docs/installation/ides.md +++ b/docs/installation/ides.md @@ -133,3 +133,34 @@ language-servers = [ "basedpyright" ] ``` You can verify the active configuration by running `hx --health python` + +## Zed + +Install the [BasedPyright extension](https://github.com/m1guer/basedpyright-zed) through Zed's extension manager. + +Enable and configure basedpyright under Zed settings: + +```json +{ + "languages": { + "Python": { + "language_servers": ["basedpyright"] + } + }, + "lsp": { + "basedpyright": { + "settings": { + "python": { + "pythonPath": ".venv/bin/python" + }, + "basedpyright.analysis": { + "diagnosticMode": "openFilesOnly", + "inlayHints": { + "callArgumentNames": true + } + } + } + } + } +} +```