From 79e3ccd0553e0f1a517e7b9dc3b568ca4d1b0deb Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Tue, 17 Jan 2023 23:26:48 +0100 Subject: [PATCH] nvim-tree: package option --- plugins/utils/nvim-tree.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/utils/nvim-tree.nix b/plugins/utils/nvim-tree.nix index 351f49ba..3e2d93c5 100644 --- a/plugins/utils/nvim-tree.nix +++ b/plugins/utils/nvim-tree.nix @@ -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 ];