mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 01:38:40 +02:00
plugins/git-worktree: use gitPackage
This commit is contained in:
parent
d4bcebc7ca
commit
831c814bb3
2 changed files with 13 additions and 1 deletions
|
@ -16,6 +16,11 @@ in
|
||||||
|
|
||||||
package = helpers.mkPluginPackageOption "git-worktree" pkgs.vimPlugins.git-worktree-nvim;
|
package = helpers.mkPluginPackageOption "git-worktree" pkgs.vimPlugins.git-worktree-nvim;
|
||||||
|
|
||||||
|
gitPackage = helpers.mkPackageOption {
|
||||||
|
name = "git";
|
||||||
|
default = pkgs.git;
|
||||||
|
};
|
||||||
|
|
||||||
enableTelescope = mkEnableOption "telescope integration";
|
enableTelescope = mkEnableOption "telescope integration";
|
||||||
|
|
||||||
changeDirectoryCommand = helpers.defaultNullOpts.mkStr "cd" ''
|
changeDirectoryCommand = helpers.defaultNullOpts.mkStr "cd" ''
|
||||||
|
@ -69,7 +74,7 @@ in
|
||||||
plenary-nvim
|
plenary-nvim
|
||||||
];
|
];
|
||||||
|
|
||||||
extraPackages = [ pkgs.git ];
|
extraPackages = [ cfg.gitPackage ];
|
||||||
|
|
||||||
extraConfigLua =
|
extraConfigLua =
|
||||||
let
|
let
|
||||||
|
|
|
@ -26,4 +26,11 @@
|
||||||
enableTelescope = false;
|
enableTelescope = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
no-packages = {
|
||||||
|
plugins.neogit = {
|
||||||
|
enable = true;
|
||||||
|
gitPackage = null;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue