mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 10:14:31 +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
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue