mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-20 02:35:52 +02:00
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:
parent
26626aa1b1
commit
33cffcb0fd
7 changed files with 152 additions and 2239 deletions
|
@ -1,5 +1,4 @@
|
|||
pkgs: rec {
|
||||
rust-analyzer-config = pkgs.callPackage ./rust-analyzer {};
|
||||
efmls-configs-tools = pkgs.callPackage ./efmls-configs {};
|
||||
autogenerated-configs = pkgs.callPackage ({stdenv}:
|
||||
stdenv.mkDerivation {
|
||||
|
@ -11,7 +10,6 @@ pkgs: rec {
|
|||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp ${rust-analyzer-config}/share/* $out
|
||||
cp ${efmls-configs-tools}/share/* $out
|
||||
'';
|
||||
}) {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue