mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 00:48:58 +02:00
bufferline: fix highlights being undefined
This commit is contained in:
parent
f477c5626d
commit
031d6509d7
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue