Allow statuscol segment text to be null

Signed-off-by: jrichardsen <jonas.richardsen@gmail.com>
This commit is contained in:
jrichardsen 2024-05-17 12:25:01 +02:00 committed by Gaétan Lepage
parent 3766e36335
commit a9682e28ec

View file

@ -43,7 +43,8 @@ helpers.neovim-plugin.mkNeovimPlugin config {
freeformType = with types; attrsOf anything; freeformType = with types; attrsOf anything;
options = { options = {
text = mkOption { text = mkOption {
type = with helpers.nixvimTypes; listOf (either str rawLua); type = with helpers.nixvimTypes; nullOr (listOf (either str rawLua));
default = null;
description = "Segment text."; description = "Segment text.";
example = [ "%C" ]; example = [ "%C" ];
}; };