dev: Add a script to generate rust-analyzer options

This commit is contained in:
traxys 2024-07-03 17:34:31 +02:00
parent 92e9f5466d
commit 8b6b2e5253
4 changed files with 205 additions and 13 deletions

View file

@ -1,13 +0,0 @@
# Updating rust-analyzer options
Because there a large number of rust-analyzer options it's difficult to handle them by hand.
The options can be fetched from the [rust-analyzer package.json](https://github.com/rust-lang/rust-analyzer/blob/master/editors/code/package.json).
There is a derivation on the top-level flake that allows to build it easily, you just have to run:
```bash
nix build .#rustAnalyzerOptions
```
You can then copy the `result/share/rust-analyzer-config.nix` to the correct location.