mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-07 19:35:01 +02:00
Bufferline: added new options
This commit is contained in:
parent
65fdfdc0eb
commit
d1278097c2
1 changed files with 20 additions and 0 deletions
|
@ -166,6 +166,21 @@ in
|
||||||
type = types.nullOr (types.enum [ "id" "extension" "relative_directory" "directory" "tabs" ]);
|
type = types.nullOr (types.enum [ "id" "extension" "relative_directory" "directory" "tabs" ]);
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
indicator = mkOption {
|
||||||
|
default = null;
|
||||||
|
type = types.nullOr (types.submodule ({ ... }: {
|
||||||
|
options = {
|
||||||
|
icon = mkOption {
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
|
style = mkOption {
|
||||||
|
type = types.nullOr (types.enum [ "icon" "underline" "none" ]);
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}));
|
||||||
|
};
|
||||||
highlights = mkOption {
|
highlights = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
type = types.nullOr (types.submodule ({ ... }: {
|
type = types.nullOr (types.submodule ({ ... }: {
|
||||||
|
@ -250,7 +265,12 @@ in
|
||||||
right_mouse_command = cfg.rightMouseCommand;
|
right_mouse_command = cfg.rightMouseCommand;
|
||||||
left_mouse_command = cfg.leftMouseCommand;
|
left_mouse_command = cfg.leftMouseCommand;
|
||||||
middle_mouse_command = cfg.middleMouseCommand;
|
middle_mouse_command = cfg.middleMouseCommand;
|
||||||
|
# deprecated, but might still work
|
||||||
indicator_icon = cfg.indicatorIcon;
|
indicator_icon = cfg.indicatorIcon;
|
||||||
|
indicator = {
|
||||||
|
icon = cfg.indicator.icon;
|
||||||
|
style = cfg.indicator.style;
|
||||||
|
};
|
||||||
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