23 lines
502 B
Nix
23 lines
502 B
Nix
|
{ 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;
|
||
|
};
|
||
|
};
|
||
|
}
|