mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 10:48:35 +02:00
plugins/neo-tree: use gitPackage
This commit is contained in:
parent
6945c6c17f
commit
38bc0b88e9
2 changed files with 8 additions and 1 deletions
|
@ -62,6 +62,11 @@ in
|
||||||
default = pkgs.vimPlugins.nvim-web-devicons;
|
default = pkgs.vimPlugins.nvim-web-devicons;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gitPackage = helpers.mkPackageOption {
|
||||||
|
name = "git";
|
||||||
|
default = pkgs.git;
|
||||||
|
};
|
||||||
|
|
||||||
sources =
|
sources =
|
||||||
helpers.defaultNullOpts.mkListOf types.str
|
helpers.defaultNullOpts.mkListOf types.str
|
||||||
[
|
[
|
||||||
|
@ -1128,6 +1133,7 @@ in
|
||||||
extraConfigLua = ''
|
extraConfigLua = ''
|
||||||
require('neo-tree').setup(${helpers.toLuaObject setupOptions})
|
require('neo-tree').setup(${helpers.toLuaObject setupOptions})
|
||||||
'';
|
'';
|
||||||
extraPackages = [ pkgs.git ];
|
|
||||||
|
extraPackages = [ cfg.gitPackage ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -442,6 +442,7 @@
|
||||||
plugins.neo-tree = {
|
plugins.neo-tree = {
|
||||||
enable = true;
|
enable = true;
|
||||||
iconsPackage = null;
|
iconsPackage = null;
|
||||||
|
gitPackage = null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue