feat: add config option to toggle inline vcs blame

This commit is contained in:
CJ van den Berg 2026-01-26 22:18:40 +01:00
parent 87b5c7e2a5
commit 0714957357
2 changed files with 3 additions and 1 deletions

View file

@ -19,6 +19,7 @@ highlight_columns_enabled: bool = false,
whitespace_mode: WhitespaceMode = .indent,
inline_diagnostics: bool = true,
inline_diagnostics_alignment: Alignment = .right,
inline_vcs_blame: bool = false,
animation_min_lag: usize = 0, //milliseconds
animation_max_lag: usize = 50, //milliseconds
hover_time_ms: usize = 500, //milliseconds

View file

@ -1258,6 +1258,7 @@ pub const Editor = struct {
self.render_whitespace_map(theme, ctx_.cell_map) catch {};
if (tui.config().inline_diagnostics)
self.render_diagnostics(theme, hl_row, ctx_.cell_map) catch {};
if (tui.config().inline_vcs_blame)
self.render_blame(theme, hl_row, ctx_.cell_map) catch {};
self.render_column_highlights() catch {};
self.render_cursors(theme, ctx_.cell_map, focused) catch {};