mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-10 12:55:28 +02:00
bufferline: fix type error if indicator is null
This commit is contained in:
parent
6478cc3d50
commit
c33a61a2f7
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue