mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-14 11:14:36 +02:00
plugins/lightline: Add option for inactive components (#1170)
This commit is contained in:
parent
64d3996bd0
commit
7dcd217ff3
1 changed files with 14 additions and 1 deletions
|
@ -72,6 +72,19 @@ in {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inactive = mkOption {
|
||||||
|
default = null;
|
||||||
|
type = types.nullOr (types.submodule {
|
||||||
|
options = let
|
||||||
|
listType = with helpers.nixvimTypes; maybeRaw (listOf (listOf str));
|
||||||
|
in {
|
||||||
|
left = helpers.mkNullOrOption listType "List of components that will show up on the left side of the bar";
|
||||||
|
|
||||||
|
right = helpers.mkNullOrOption listType "List of components that will show up on the right side of the bar";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
modeMap = mkOption {
|
modeMap = mkOption {
|
||||||
type = with types; nullOr (attrsOf str);
|
type = with types; nullOr (attrsOf str);
|
||||||
description = "Mode name mappings";
|
description = "Mode name mappings";
|
||||||
|
@ -82,7 +95,7 @@ in {
|
||||||
|
|
||||||
config = let
|
config = let
|
||||||
configAttrs = filterAttrs (_: v: v != null) {
|
configAttrs = filterAttrs (_: v: v != null) {
|
||||||
inherit (cfg) colorscheme active component componentFunction modeMap;
|
inherit (cfg) colorscheme active inactive component componentFunction modeMap;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue