feat: add show_bottom_bar_grip config option
This commit is contained in:
parent
c04bbe4062
commit
03c6e4def0
2 changed files with 3 additions and 1 deletions
|
|
@ -45,6 +45,7 @@ indent_mode: IndentMode = .auto,
|
|||
|
||||
top_bar: []const u8 = "tabs",
|
||||
bottom_bar: []const u8 = "mode file log selection diagnostics keybind branch linenumber clock spacer",
|
||||
show_bottom_bar_grip: bool = true,
|
||||
show_scrollbars: bool = true,
|
||||
show_fileicons: bool = true,
|
||||
show_local_diagnostics_in_panel: bool = false,
|
||||
|
|
|
|||
|
|
@ -110,7 +110,8 @@ pub fn create(allocator: std.mem.Allocator) CreateError!Widget {
|
|||
try widgets.add(self.panes_widget);
|
||||
|
||||
if (tui.config().bottom_bar.len > 0) {
|
||||
self.bottom_bar = (try widgets.addP(try @import("status/bar.zig").create(allocator, self.plane, tui.config().bottom_bar, .grip, EventHandler.bind(self, handle_bottom_bar_event)))).*;
|
||||
const bar_style: @import("status/bar.zig").Style = if (tui.config().show_bottom_bar_grip) .grip else .none;
|
||||
self.bottom_bar = (try widgets.addP(try @import("status/bar.zig").create(allocator, self.plane, tui.config().bottom_bar, bar_style, EventHandler.bind(self, handle_bottom_bar_event)))).*;
|
||||
}
|
||||
if (tp.env.get().is("show-input")) {
|
||||
self.toggle_inputview_async();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue