From 7314f0d6e506acfd508ff6d63f108cae5885b752 Mon Sep 17 00:00:00 2001 From: Ariel Date: Sun, 10 Dec 2023 15:37:48 +0100 Subject: [PATCH] Update plugins/statuslines/lualine.nix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: GaƩtan Lepage <33058747+GaetanLepage@users.noreply.github.com> --- plugins/statuslines/lualine.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/plugins/statuslines/lualine.nix b/plugins/statuslines/lualine.nix index 48f986c2..b9523049 100644 --- a/plugins/statuslines/lualine.nix +++ b/plugins/statuslines/lualine.nix @@ -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. '';