plugins/lightline: Improve types for active option of lightline (#1200)

This commit is contained in:
Dyson 2024-03-03 19:12:50 +00:00 committed by GitHub
parent 7dcd217ff3
commit 740b59c1f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,19 +55,11 @@ in {
default = null; default = null;
type = types.nullOr (types.submodule { type = types.nullOr (types.submodule {
options = let options = let
listType = with types; nullOr (listOf (listOf str)); listType = with helpers.nixvimTypes; maybeRaw (listOf (listOf str));
in { in {
left = mkOption { left = helpers.mkNullOrOption listType "List of components that will show up on the left side of the bar";
type = listType;
description = "List of components that will show up on the left side of the bar";
default = null;
};
right = mkOption { right = helpers.mkNullOrOption listType "List of components that will show up on the right side of the bar";
type = listType;
description = "List of components that will show up on the right side of the bar";
default = null;
};
}; };
}); });
}; };