nix-community.nixvim/plugins/languages/godot.nix
Matt Sturgeon 2a054b039e
lib/vim-plugin: drop config arg
Instead, access it via an imported module
2024-09-02 10:33:50 +01:00

34 lines
630 B
Nix

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