feat: add show_bottom_bar_grip config option

This commit is contained in:
CJ van den Berg 2026-01-22 13:29:35 +01:00
parent c04bbe4062
commit 03c6e4def0
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 3 additions and 1 deletions

View file

@ -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,

View file

@ -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();