plugins/lsp: Extract rust-analyzer options from the source directly (#562)

This directly reads the package.json file in pkgs.rust-analyzer.src in
order to generate the list of options for rust-analyzer.

This avoids the need for a generator script, and makes sure that it is
always in sync.
This commit is contained in:
traxys 2023-08-28 17:28:12 +02:00 committed by GitHub
parent 26626aa1b1
commit 33cffcb0fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 152 additions and 2239 deletions

View file

@ -24,7 +24,6 @@ jobs:
run: |
git checkout update_flake_lock_action
nix build .#autogenerated-configs
cp result/rust-analyzer-config.nix ./plugins/lsp/language-servers/rust-analyzer-config.nix
cp result/efmls-configs-tools.json ./plugins/lsp/language-servers/efmls-configs-tools.json
git add ./plugins
git commit -m "autogenerated: Update options"