nix-community.nixvim/plugins/by-name/godot/default.nix

35 lines
616 B
Nix
Raw Normal View History

2024-04-22 10:05:55 +02:00
{
lib,
helpers,
pkgs,
...
}:
with lib;
2024-12-22 09:58:27 +00:00
lib.nixvim.plugins.mkVimPlugin {
2024-05-05 19:39:35 +02:00
name = "godot";
packPathName = "vim-godot";
package = "vim-godot";
2024-05-05 19:39:35 +02:00
globalPrefix = "godot_";
2024-04-22 10:05:55 +02:00
2024-05-05 19:39:35 +02:00
maintainers = [ maintainers.GaetanLepage ];
2024-04-22 10:05:55 +02:00
2024-05-05 19:39:35 +02:00
extraOptions = {
godotPackage = lib.mkPackageOption pkgs "godot" {
nullable = true;
default = "godot_4";
2024-04-22 10:05:55 +02:00
};
2024-05-05 19:39:35 +02:00
};
2024-04-22 10:05:55 +02:00
2024-05-05 19:39:35 +02:00
settingsOptions = {
executable = helpers.defaultNullOpts.mkStr "godot" ''
Path to the `godot` executable.
'';
};
2024-04-22 10:05:55 +02:00
2024-05-05 19:39:35 +02:00
settingsExample = {
executable = "godot";
};
extraConfig = cfg: { extraPackages = [ cfg.godotPackage ]; };
}