mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
34 lines
616 B
Nix
34 lines
616 B
Nix
{
|
|
lib,
|
|
helpers,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
lib.nixvim.plugins.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 ]; };
|
|
}
|