mirror of
https://github.com/nix-community/nixvim.git
synced 2026-09-25 07:49:51 -05:00
plugins/neo-tree: use gitPackage
This commit is contained in:
@@ -62,6 +62,11 @@ in
|
||||
default = pkgs.vimPlugins.nvim-web-devicons;
|
||||
};
|
||||
|
||||
gitPackage = helpers.mkPackageOption {
|
||||
name = "git";
|
||||
default = pkgs.git;
|
||||
};
|
||||
|
||||
sources =
|
||||
helpers.defaultNullOpts.mkListOf types.str
|
||||
[
|
||||
@@ -1128,6 +1133,7 @@ in
|
||||
extraConfigLua = ''
|
||||
require('neo-tree').setup(${helpers.toLuaObject setupOptions})
|
||||
'';
|
||||
extraPackages = [ pkgs.git ];
|
||||
|
||||
extraPackages = [ cfg.gitPackage ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -442,6 +442,7 @@
|
||||
plugins.neo-tree = {
|
||||
enable = true;
|
||||
iconsPackage = null;
|
||||
gitPackage = null;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user