mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-19 18:25:11 +02:00
modules/dependencies: add git
This commit is contained in:
parent
30c4d00b72
commit
9abe8fd025
26 changed files with 179 additions and 149 deletions
|
@ -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" ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue