mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/dependencies: add godot
This commit is contained in:
parent
06acf3f103
commit
e7c9cc7133
2 changed files with 11 additions and 8 deletions
|
@ -28,6 +28,7 @@ let
|
||||||
};
|
};
|
||||||
glow.default = "glow";
|
glow.default = "glow";
|
||||||
go.default = "go";
|
go.default = "go";
|
||||||
|
godot.default = "godot_4";
|
||||||
lazygit.default = "lazygit";
|
lazygit.default = "lazygit";
|
||||||
lean.default = "lean4";
|
lean.default = "lean4";
|
||||||
ledger.default = "ledger";
|
ledger.default = "ledger";
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
helpers,
|
helpers,
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
|
@ -13,12 +12,13 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
maintainers = [ maintainers.GaetanLepage ];
|
maintainers = [ maintainers.GaetanLepage ];
|
||||||
|
|
||||||
extraOptions = {
|
imports = [
|
||||||
godotPackage = lib.mkPackageOption pkgs "godot" {
|
# TODO: added 2025-04-07, remove after 25.05
|
||||||
nullable = true;
|
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||||
default = "godot_4";
|
plugin = "godot";
|
||||||
};
|
packageName = "godot";
|
||||||
};
|
})
|
||||||
|
];
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
executable = helpers.defaultNullOpts.mkStr "godot" ''
|
executable = helpers.defaultNullOpts.mkStr "godot" ''
|
||||||
|
@ -30,5 +30,7 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
executable = "godot";
|
executable = "godot";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = cfg: { extraPackages = [ cfg.godotPackage ]; };
|
extraConfig = {
|
||||||
|
dependencies.godot.enable = lib.mkDefault true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue