mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-15 03:34:31 +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;
|
||||
type = types.nullOr (types.submodule {
|
||||
options = let
|
||||
listType = with types; nullOr (listOf (listOf str));
|
||||
listType = with helpers.nixvimTypes; maybeRaw (listOf (listOf str));
|
||||
in {
|
||||
left = mkOption {
|
||||
type = listType;
|
||||
description = "List of components that will show up on the left side of the bar";
|
||||
default = null;
|
||||
};
|
||||
left = helpers.mkNullOrOption listType "List of components that will show up on the left side of the bar";
|
||||
|
||||
right = mkOption {
|
||||
type = listType;
|
||||
description = "List of components that will show up on the right side of the bar";
|
||||
default = null;
|
||||
};
|
||||
right = helpers.mkNullOrOption listType "List of components that will show up on the right side of the bar";
|
||||
};
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue