modules/dependencies: add git

This commit is contained in:
Gaetan Lepage 2025-04-06 17:21:24 +02:00 committed by nix-infra-bot
parent 30c4d00b72
commit 9abe8fd025
26 changed files with 179 additions and 149 deletions

View file

@ -1,7 +1,6 @@
{
lib,
config,
pkgs,
...
}:
let
@ -14,6 +13,14 @@ lib.nixvim.plugins.mkNeovimPlugin {
maintainers = [ lib.maintainers.khaneliman ];
# TODO: added 2025-04-06, remove after 25.05
imports = [
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "git-worktree";
packageName = "git";
})
];
settingsOptions = {
change_directory_command = defaultNullOpts.mkStr "cd" ''
The vim command used to change to the new worktree directory.
@ -50,10 +57,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
extraOptions = {
enableTelescope = lib.mkEnableOption "telescope integration";
gitPackage = lib.mkPackageOption pkgs "git" {
nullable = true;
};
};
callSetup = false;
@ -67,7 +70,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
'';
};
extraPackages = [ cfg.gitPackage ];
dependencies.git.enable = lib.mkDefault true;
plugins.telescope.enabledExtensions = lib.mkIf cfg.enableTelescope [ "git_worktree" ];