mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-15 11:44:32 +02:00
plugins/lightline: Improve types for active option of lightline (#1200)
This commit is contained in:
parent
7dcd217ff3
commit
740b59c1f1
1 changed files with 3 additions and 11 deletions
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue