From 4f19be458bb78ac1f971792e88e17de2cb86f5bc Mon Sep 17 00:00:00 2001 From: detachhead Date: Tue, 26 Nov 2024 19:30:59 +1000 Subject: [PATCH] move zed langauge server config to the language server config section --- .../configuration/language-server-settings.md | 24 +++++++++++++++++++ docs/installation/ides.md | 17 ++----------- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/docs/configuration/language-server-settings.md b/docs/configuration/language-server-settings.md index dffaaf04f6..04ef8f971f 100644 --- a/docs/configuration/language-server-settings.md +++ b/docs/configuration/language-server-settings.md @@ -116,4 +116,28 @@ args = ["--stdio"] [language-server.basedpyright.config] basedpyright.analysis.diagnosticMode = "openFilesOnly" +``` + +### zed + +```json +{ + "languages": { + "Python": { + "language_servers": ["basedpyright"] + } + }, + "lsp": { + "basedpyright": { + "settings": { + "python": { + "pythonPath": ".venv/bin/python" + }, + "basedpyright.analysis": { + "diagnosticMode": "openFilesOnly" + } + } + } + } +} ``` \ No newline at end of file diff --git a/docs/installation/ides.md b/docs/installation/ides.md index 71d828fd15..cbab1c1290 100644 --- a/docs/installation/ides.md +++ b/docs/installation/ides.md @@ -4,6 +4,8 @@ note that most of these editor plugins require [the language server to be installed](./command-line-and-language-server.md). +for information on how to configure the language server in your IDE, [see here](../configuration/language-server-settings.md#where-do-i-configure-these-settings). + ## VSCode / VSCodium ### VSCode @@ -146,21 +148,6 @@ Enable and configure basedpyright under Zed settings: "Python": { "language_servers": ["basedpyright"] } - }, - "lsp": { - "basedpyright": { - "settings": { - "python": { - "pythonPath": ".venv/bin/python" - }, - "basedpyright.analysis": { - "diagnosticMode": "openFilesOnly", - "inlayHints": { - "callArgumentNames": true - } - } - } - } } } ```