* wrappers: fix missing variable

* bufferline: fix type error if indicator is null
This commit is contained in:
LightQuantum 2023-02-15 03:51:56 +08:00 committed by GitHub
parent b6e01b9100
commit 7ccb2b0608
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -263,7 +263,11 @@ in
middle_mouse_command = cfg.middleMouseCommand; middle_mouse_command = cfg.middleMouseCommand;
# deprecated, but might still work # deprecated, but might still work
indicator_icon = cfg.indicatorIcon; 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; buffer_close_icon = cfg.bufferCloseIcon;
modified_icon = cfg.modifiedIcon; modified_icon = cfg.modifiedIcon;
close_icon = cfg.closeIcon; close_icon = cfg.closeIcon;

View file

@ -1,4 +1,4 @@
{ lib, ... }: { lib, pkgs, ... }:
let let
inherit (lib) mkEnableOption mkOption mkOptionType mkForce mkMerge mkIf types; inherit (lib) mkEnableOption mkOption mkOptionType mkForce mkMerge mkIf types;