nixeovim/modules/plugins/navigation/nvim-tree.nix

23 lines
502 B
Nix
Raw Normal View History

2024-04-27 02:29:05 +03:00
{ config, lib, pkgs, ... }:
let cfg = config.plugins.navigation.nvim-tree; in
{
options.plugins.navigation.nvim-tree = with lib; with types; {
enable = mkEnableOption "nvim-tree";
package = mkPackageOption pkgs.vimPlugins "nvim-tree-lua" { };
settings = mkOption {
type = attrs;
default = { };
};
};
config = lib.mkIf cfg.enable {
plugin.nvim-tree-lua = {
name = "nvim-tree";
package = cfg.package;
setupSettings = cfg.settings;
};
};
}