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";
|
||||
go.default = "go";
|
||||
godot.default = "godot_4";
|
||||
lazygit.default = "lazygit";
|
||||
lean.default = "lean4";
|
||||
ledger.default = "ledger";
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
lib,
|
||||
helpers,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
|
@ -13,12 +12,13 @@ lib.nixvim.plugins.mkVimPlugin {
|
|||
|
||||
maintainers = [ maintainers.GaetanLepage ];
|
||||
|
||||
extraOptions = {
|
||||
godotPackage = lib.mkPackageOption pkgs "godot" {
|
||||
nullable = true;
|
||||
default = "godot_4";
|
||||
};
|
||||
};
|
||||
imports = [
|
||||
# TODO: added 2025-04-07, remove after 25.05
|
||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||
plugin = "godot";
|
||||
packageName = "godot";
|
||||
})
|
||||
];
|
||||
|
||||
settingsOptions = {
|
||||
executable = helpers.defaultNullOpts.mkStr "godot" ''
|
||||
|
@ -30,5 +30,7 @@ lib.nixvim.plugins.mkVimPlugin {
|
|||
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