mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +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;
|
||||
};
|
||||
highlights = mkOption {
|
||||
default = null;
|
||||
type = types.nullOr (types.submodule ({...}: {
|
||||
options = {
|
||||
fill = highlight;
|
||||
|
@ -252,7 +253,7 @@ in
|
|||
always_show_bufferline = cfg.alwaysShowBufferline;
|
||||
sort_by = cfg.sortBy;
|
||||
};
|
||||
highlights = with cfg.highlights; {
|
||||
highlights = if builtins.isNull cfg.highlights then null else with cfg.highlights; {
|
||||
fill = fill;
|
||||
background = background;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue