From 17b79813bfefaba19e80bcb7a9cafdef4406f6e4 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 18 Sep 2024 21:31:19 -0500 Subject: [PATCH] plugins/alpha: rawLua support --- plugins/by-name/alpha/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/by-name/alpha/default.nix b/plugins/by-name/alpha/default.nix index 38b16532..d7cecfb4 100644 --- a/plugins/by-name/alpha/default.nix +++ b/plugins/by-name/alpha/default.nix @@ -27,8 +27,9 @@ let val = helpers.mkNullOrOption ( with helpers.nixvimTypes; nullOr (oneOf [ + # "button", "text" - str + (maybeRaw str) # "padding" int (listOf ( @@ -82,7 +83,7 @@ in }; layout = mkOption { - type = types.listOf sectionType; + type = with types; either (maybeRaw str) (listOf sectionType); default = [ ]; description = "List of sections to layout for the dashboard"; example = [