From 2ebec66857c0d08679c38e63a109c87b206e2849 Mon Sep 17 00:00:00 2001 From: Kesavan Yogeswaran Date: Sat, 6 Jul 2024 13:31:32 -0400 Subject: [PATCH] Add Rust Analyzer configuration Add a Rust Analyzer configuration via a VS Code settings file, which silences some annoying false positive diagnostics. One can use [folke/neoconf.nvim](https://github.com/folke/neoconf.nvim) to use the configuration with neovim. I couldn't get this to work with neoconf.nvim via a .neoconf.json file for some reason. --- .vscode/settings.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..1ef0562 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "rust-analyzer.checkOnSave.allTargets": false, + "rust-analyzer.checkOnSave.extraArgs": [ + "--target", + "thumbv7m-none-eabihf" + ] +}