Update plugins/statuslines/lualine.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
Ariel 2023-12-10 15:37:48 +01:00 committed by Gaétan Lepage
parent a24f6279a6
commit 7314f0d6e5

View file

@ -36,7 +36,23 @@ with lib; let
Enables the display of icons alongside the component.
'';
icon = helpers.mkNullOrOption (with types; either str (attrsOf anything)) ''
icon = helpers.mkNullOrOption
(
with types;
either
str
(submodule {
freeformType = attrsOf anything;
options = {
icon = mkOption {
type = str;
description = "Icon character.";
};
};
})
)
"Defines the icon to be displayed in front of the component.";
Defines the icon to be displayed in front of the component.
'';