mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 19:40:06 +02:00
plugins/nvim-tree: use gitPackage
This commit is contained in:
parent
efb004a61f
commit
6945c6c17f
2 changed files with 8 additions and 1 deletions
|
@ -46,6 +46,11 @@ in
|
|||
default = pkgs.vimPlugins.nvim-web-devicons;
|
||||
};
|
||||
|
||||
gitPackage = helpers.mkPackageOption {
|
||||
name = "git";
|
||||
default = pkgs.git;
|
||||
};
|
||||
|
||||
disableNetrw = helpers.defaultNullOpts.mkBool false "Disable netrw";
|
||||
|
||||
hijackNetrw = helpers.defaultNullOpts.mkBool true "Hijack netrw";
|
||||
|
@ -1180,6 +1185,7 @@ in
|
|||
|
||||
require('nvim-tree').setup(${helpers.toLuaObject options})
|
||||
'';
|
||||
extraPackages = [ pkgs.git ];
|
||||
|
||||
extraPackages = [ cfg.gitPackage ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue