nix-community.nixvim/plugins/by-name/godot/default.nix
Austin Horstman a7012e7864
treewide: originalName -> packPathName
We used to only think of it as the plugin repo's name, but we have been
needing to use it for the name of the plugin's packpath location.
2024-12-13 21:29:00 -06:00

34 lines
616 B
Nix

{
lib,
helpers,
pkgs,
...
}:
with lib;
helpers.vim-plugin.mkVimPlugin {
name = "godot";
packPathName = "vim-godot";
package = "vim-godot";
globalPrefix = "godot_";
maintainers = [ maintainers.GaetanLepage ];
extraOptions = {
godotPackage = lib.mkPackageOption pkgs "godot" {
nullable = true;
default = "godot_4";
};
};
settingsOptions = {
executable = helpers.defaultNullOpts.mkStr "godot" ''
Path to the `godot` executable.
'';
};
settingsExample = {
executable = "godot";
};
extraConfig = cfg: { extraPackages = [ cfg.godotPackage ]; };
}