feat: add hover_info_mode and info_box_style config options
This commit is contained in:
parent
aed77322f3
commit
f0bf122f22
1 changed files with 9 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ inline_vcs_blame_alignment: Alignment = .right,
|
||||||
animation_min_lag: usize = 0, //milliseconds
|
animation_min_lag: usize = 0, //milliseconds
|
||||||
animation_max_lag: usize = 50, //milliseconds
|
animation_max_lag: usize = 50, //milliseconds
|
||||||
hover_time_ms: usize = 500, //milliseconds
|
hover_time_ms: usize = 500, //milliseconds
|
||||||
|
hover_info_mode: HoverInfoMode = .box,
|
||||||
input_idle_time_ms: usize = 100, //milliseconds
|
input_idle_time_ms: usize = 100, //milliseconds
|
||||||
idle_actions: []const IdleAction = &default_actions,
|
idle_actions: []const IdleAction = &default_actions,
|
||||||
idle_commands: ?[]const []const u8 = null, // a list of simple commands
|
idle_commands: ?[]const []const u8 = null, // a list of simple commands
|
||||||
|
|
@ -75,7 +76,7 @@ pane_left_style: WidgetStyle = .bar_right,
|
||||||
pane_right_style: WidgetStyle = .bar_left,
|
pane_right_style: WidgetStyle = .bar_left,
|
||||||
pane_style: PaneStyle = .panel,
|
pane_style: PaneStyle = .panel,
|
||||||
hint_window_style: WidgetStyle = .thick_boxed,
|
hint_window_style: WidgetStyle = .thick_boxed,
|
||||||
info_box_style: WidgetStyle = .bar_left,
|
info_box_style: WidgetStyle = .bar_left_spacious,
|
||||||
|
|
||||||
centered_view: bool = false,
|
centered_view: bool = false,
|
||||||
centered_view_width: usize = 145,
|
centered_view_width: usize = 145,
|
||||||
|
|
@ -138,6 +139,8 @@ pub const WidgetStyle = enum {
|
||||||
single_double_top_bottom_boxed,
|
single_double_top_bottom_boxed,
|
||||||
single_double_left_right_boxed,
|
single_double_left_right_boxed,
|
||||||
boxed,
|
boxed,
|
||||||
|
bar_left_spacious,
|
||||||
|
bar_right_spacious,
|
||||||
spacious,
|
spacious,
|
||||||
compact,
|
compact,
|
||||||
};
|
};
|
||||||
|
|
@ -213,6 +216,11 @@ pub const CompletionInfoMode = enum {
|
||||||
panel,
|
panel,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const HoverInfoMode = enum {
|
||||||
|
box,
|
||||||
|
panel,
|
||||||
|
};
|
||||||
|
|
||||||
pub const Alignment = enum {
|
pub const Alignment = enum {
|
||||||
left,
|
left,
|
||||||
right,
|
right,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue