feat: toggle gutter symbols along with inline diagnostics

This commit is contained in:
CJ van den Berg 2025-02-21 21:39:06 +01:00
parent 7c354c994f
commit a288945609
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -265,7 +265,8 @@ inline fn render_diff_symbols(self: *Self, diff_symbols: *[]Symbol, pos: usize,
} }
fn render_diagnostics(self: *Self, theme: *const Widget.Theme) void { fn render_diagnostics(self: *Self, theme: *const Widget.Theme) void {
for (self.editor.diagnostics.items) |*diag| self.render_diagnostic(diag, theme); if (tui.config().inline_diagnostics)
for (self.editor.diagnostics.items) |*diag| self.render_diagnostic(diag, theme);
} }
fn render_diagnostic(self: *Self, diag: *const ed.Diagnostic, theme: *const Widget.Theme) void { fn render_diagnostic(self: *Self, diag: *const ed.Diagnostic, theme: *const Widget.Theme) void {