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

https://github.com/nix-community/nixvim/pull/3445#pullrequestreview-2908615597
This commit is contained in:
sportshead 2025-06-08 23:30:08 +01:00 committed by Matt Sturgeon
parent ee715541ab
commit 6a054de04d
4 changed files with 77 additions and 6 deletions

View file

@ -7,6 +7,8 @@
let
cfg = config.plugins.lsp.servers.hls;
inherit (lib) types;
ghcPackage = lib.optional (cfg.installGhc == true) cfg.ghcPackage;
in
{
options.plugins.lsp.servers.hls = {
@ -32,6 +34,7 @@ in
'';
};
extraPackages = lib.optional (cfg.installGhc == true) cfg.ghcPackage;
extraPackages = lib.optionals (!cfg.packageFallback) ghcPackage;
extraPackagesAfter = lib.optionals cfg.packageFallback ghcPackage;
};
}