nvim-tree: package option

This commit is contained in:
Alexander Nortung 2023-01-17 23:26:48 +01:00
parent 30dd9054e1
commit 79e3ccd055

View file

@ -8,6 +8,12 @@ in
options.plugins.nvim-tree = {
enable = mkEnableOption "Enable nvim-tree";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.nvim-tree-lua;
description = "Plugin to use for nvim-tree";
};
disableNetrw = mkOption {
type = types.nullOr types.bool;
default = null;
@ -257,7 +263,7 @@ in
in
mkIf cfg.enable {
extraPlugins = with pkgs.vimPlugins; [
nvim-tree-lua
cfg.package
nvim-web-devicons
];