From c33a61a2f75273101faab713f8550617ef3f33b1 Mon Sep 17 00:00:00 2001 From: LightQuantum Date: Sat, 28 Jan 2023 13:56:46 +0800 Subject: [PATCH] bufferline: fix type error if indicator is null --- plugins/bufferlines/bufferline.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/bufferlines/bufferline.nix b/plugins/bufferlines/bufferline.nix index 46d065d2..c4ed7b16 100644 --- a/plugins/bufferlines/bufferline.nix +++ b/plugins/bufferlines/bufferline.nix @@ -263,7 +263,11 @@ in middle_mouse_command = cfg.middleMouseCommand; # deprecated, but might still work indicator_icon = cfg.indicatorIcon; - indicator = cfg.indicator; + indicator = + if cfg.indicator != null then with cfg.indicator; { + icon = icon; + style = style; + } else null; buffer_close_icon = cfg.bufferCloseIcon; modified_icon = cfg.modifiedIcon; close_icon = cfg.closeIcon;