From d1278097c22d8dfc59a19a120e9614d7b0eeee20 Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Sun, 22 Jan 2023 21:25:04 +0100 Subject: [PATCH] Bufferline: added new options --- plugins/bufferlines/bufferline.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/plugins/bufferlines/bufferline.nix b/plugins/bufferlines/bufferline.nix index 4e9d2705..811cf56c 100644 --- a/plugins/bufferlines/bufferline.nix +++ b/plugins/bufferlines/bufferline.nix @@ -166,6 +166,21 @@ in type = types.nullOr (types.enum [ "id" "extension" "relative_directory" "directory" "tabs" ]); default = null; }; + indicator = mkOption { + default = null; + type = types.nullOr (types.submodule ({ ... }: { + options = { + icon = mkOption { + type = types.nullOr types.str; + default = null; + }; + style = mkOption { + type = types.nullOr (types.enum [ "icon" "underline" "none" ]); + default = null; + }; + }; + })); + }; highlights = mkOption { default = null; type = types.nullOr (types.submodule ({ ... }: { @@ -250,7 +265,12 @@ in right_mouse_command = cfg.rightMouseCommand; left_mouse_command = cfg.leftMouseCommand; middle_mouse_command = cfg.middleMouseCommand; + # deprecated, but might still work indicator_icon = cfg.indicatorIcon; + indicator = { + icon = cfg.indicator.icon; + style = cfg.indicator.style; + }; buffer_close_icon = cfg.bufferCloseIcon; modified_icon = cfg.modifiedIcon; close_icon = cfg.closeIcon;