From de19f0249a40bcd854e1d844034b62d33ebe71ec Mon Sep 17 00:00:00 2001 From: Pei Yang Ching <59727193+horriblename@users.noreply.github.com> Date: Wed, 17 Jul 2024 12:48:56 +0200 Subject: [PATCH] allow ["|" "HighlightGroup"] for border char --- lib/types/plugins.nix | 2 +- modules/plugins/ui/borders/borders.nix | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/types/plugins.nix b/lib/types/plugins.nix index 65ba49b..7d24163 100644 --- a/lib/types/plugins.nix +++ b/lib/types/plugins.nix @@ -56,7 +56,7 @@ in { inherit extraPluginType fromInputs pluginType; - borderType = either (enum borderPresets) (listOf str); + borderType = either (enum borderPresets) (listOf (either str (listOf str))); pluginsOpt = { description, diff --git a/modules/plugins/ui/borders/borders.nix b/modules/plugins/ui/borders/borders.nix index 3097530..9951591 100644 --- a/modules/plugins/ui/borders/borders.nix +++ b/modules/plugins/ui/borders/borders.nix @@ -19,7 +19,9 @@ in { If a list is given, it should have a length of eight or any divisor of eight. The array will specify the eight chars building up the border in - a clockwise fashion starting with the top-left corner. + a clockwise fashion starting with the top-left corner. You can specify + a different highlight group for each character by passing a + [char, "YourHighlightGroup"] instead ''; example = ["╔" "═" "╗" "║" "╝" "═" "╚" "║"]; };