Skip to content

Commit

Permalink
Update plugins/statuslines/lualine.nix
Browse files Browse the repository at this point in the history
Co-authored-by: Gaétan Lepage <[email protected]>
  • Loading branch information
adalessa and GaetanLepage committed Dec 10, 2023
1 parent a24f627 commit 7314f0d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion plugins/statuslines/lualine.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
'';
Expand Down

0 comments on commit 7314f0d

Please sign in to comment.