allow ["|" "HighlightGroup"] for border char

This commit is contained in:
Pei Yang Ching 2024-07-17 12:48:56 +02:00
parent 5c9746aa30
commit de19f0249a
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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 = ["" "" "" "" "" "" "" ""];
};