From d575f93394c3e61748a415307f4aa84ee24ce269 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Tue, 24 Jun 2025 16:46:06 -0300 Subject: [PATCH] feat(diffview): set tab width to 4 The default is 8. 4 will give us some more space as it is critical for this use case, specially on split view. Note that this only affects languages that uses tabs for spaces, like Go. --- internal/tui/components/core/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tui/components/core/helpers.go b/internal/tui/components/core/helpers.go index b13a23d868a80518fe6a5079f2053fe2d38463c8..ca21df0cff81f3f78d8b5d2d17089a0f4114896f 100644 --- a/internal/tui/components/core/helpers.go +++ b/internal/tui/components/core/helpers.go @@ -151,6 +151,6 @@ func DiffFormatter() *diffview.DiffView { t := styles.CurrentTheme() formatDiff := diffview.New() style := chroma.MustNewStyle("crush", styles.GetChromaTheme()) - diff := formatDiff.ChromaStyle(style).Style(t.S().Diff) + diff := formatDiff.ChromaStyle(style).Style(t.S().Diff).TabWidth(4) return diff }