Skip to content

Commit

Permalink
Add Rust Analyzer configurations
Browse files Browse the repository at this point in the history
Add Rust Analyzer configurations for Neovim and VS Code. This silences
some annoying false positive diagnostics.

Using the neovim configuration requires
[folke/neoconf.nvim](https://github.com/folke/neoconf.nvim).
  • Loading branch information
kesyog committed Jul 6, 2024
1 parent d28da13 commit 2497d0a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .neoconf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"lspconfig": {
"rust_analyzer": {
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": [
"--target",
"thumbv7m-none-eabihf"
]
}
}
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": [
"--target",
"thumbv7m-none-eabihf"
]
}

0 comments on commit 2497d0a

Please sign in to comment.