bufferline: fix highlights being undefined

This commit is contained in:
Pedro Alves 2022-01-01 15:08:57 +00:00
parent f477c5626d
commit 031d6509d7

View file

@ -153,6 +153,7 @@ in
default = null; default = null;
}; };
highlights = mkOption { highlights = mkOption {
default = null;
type = types.nullOr (types.submodule ({...}: { type = types.nullOr (types.submodule ({...}: {
options = { options = {
fill = highlight; fill = highlight;
@ -252,7 +253,7 @@ in
always_show_bufferline = cfg.alwaysShowBufferline; always_show_bufferline = cfg.alwaysShowBufferline;
sort_by = cfg.sortBy; sort_by = cfg.sortBy;
}; };
highlights = with cfg.highlights; { highlights = if builtins.isNull cfg.highlights then null else with cfg.highlights; {
fill = fill; fill = fill;
background = background; background = background;