mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/lsp: add packageFallback option
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Build unstable (push) Waiting to run
Documentation / Build 24.11 (push) Waiting to run
Documentation / Build 25.05 (push) Waiting to run
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Build unstable (push) Waiting to run
Documentation / Build 24.11 (push) Waiting to run
Documentation / Build 25.05 (push) Waiting to run
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
https://github.com/nix-community/nixvim/pull/3445#pullrequestreview-2908615597
This commit is contained in:
parent
ee715541ab
commit
6a054de04d
4 changed files with 77 additions and 6 deletions
|
@ -9,6 +9,11 @@ let
|
|||
inherit (lib) mkPackageOption types;
|
||||
inherit (lib.nixvim) mkNullOrOption';
|
||||
|
||||
extraPackages =
|
||||
lib.optional (cfg.installCargo == true) cfg.cargoPackage
|
||||
++ lib.optional (cfg.installRustc == true) cfg.rustcPackage
|
||||
++ lib.optional (cfg.installRustfmt == true) cfg.rustfmtPackage;
|
||||
|
||||
in
|
||||
{
|
||||
options.plugins.lsp.servers.rust_analyzer = {
|
||||
|
@ -72,9 +77,7 @@ in
|
|||
}
|
||||
];
|
||||
|
||||
extraPackages =
|
||||
lib.optional (cfg.installCargo == true) cfg.cargoPackage
|
||||
++ lib.optional (cfg.installRustc == true) cfg.rustcPackage
|
||||
++ lib.optional (cfg.installRustfmt == true) cfg.rustfmtPackage;
|
||||
extraPackages = lib.optionals (!cfg.packageFallback) extraPackages;
|
||||
extraPackagesAfter = lib.optionals cfg.packageFallback extraPackages;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue