plugins/git-worktree: use gitPackage

This commit is contained in:
Austin Horstman 2024-08-29 11:19:30 -05:00
parent d4bcebc7ca
commit 831c814bb3
No known key found for this signature in database
2 changed files with 13 additions and 1 deletions

View file

@ -16,6 +16,11 @@ in
package = helpers.mkPluginPackageOption "git-worktree" pkgs.vimPlugins.git-worktree-nvim;
gitPackage = helpers.mkPackageOption {
name = "git";
default = pkgs.git;
};
enableTelescope = mkEnableOption "telescope integration";
changeDirectoryCommand = helpers.defaultNullOpts.mkStr "cd" ''
@ -69,7 +74,7 @@ in
plenary-nvim
];
extraPackages = [ pkgs.git ];
extraPackages = [ cfg.gitPackage ];
extraConfigLua =
let