diff --git a/assets/settings/default.json b/assets/settings/default.json index 8d12c54fde..0ea59570e4 100644 --- a/assets/settings/default.json +++ b/assets/settings/default.json @@ -540,10 +540,10 @@ "lsp": { // Specify the LSP name as a key here. // "rust-analyzer": { - // //These initialization options are merged into Zed's defaults + // // These initialization options are merged into Zed's defaults // "initialization_options": { - // "checkOnSave": { - // "command": "clippy" + // "check": { + // "command": "clippy" // rust-analyzer.check.command (default: "check") // } // } // } diff --git a/docs/src/configuring_zed.md b/docs/src/configuring_zed.md index 006a448fc9..9103e64f60 100644 --- a/docs/src/configuring_zed.md +++ b/docs/src/configuring_zed.md @@ -245,8 +245,8 @@ To override settings for a language, add an entry for that language server's nam "lsp": { "rust-analyzer": { "initialization_options": { - "checkOnSave": { - "command": "clippy" // rust-analyzer.checkOnSave.command + "check": { + "command": "clippy" // rust-analyzer.check.command (default: "check") } } }