From dd6253ba8c37b51927ab4dc0e71f5b3a264f36b3 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 24 Jun 2026 06:57:54 +0800 Subject: Add editor configs for Rust with clippy on save --- .vscode/settings.json | 4 ++++ .zed/settings.json | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 .zed/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..226921e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "rust-analyzer.check.command": "clippy", + "rust-analyzer.checkOnSave": true +} diff --git a/.zed/settings.json b/.zed/settings.json new file mode 100644 index 0000000..067be5a --- /dev/null +++ b/.zed/settings.json @@ -0,0 +1,10 @@ +{ + "lsp": { + "rust-analyzer": { + "initialization_options": { + "checkOnSave": true, + "check": { "command": "clippy" }, + }, + }, + }, +} -- cgit