feat(diffview): set tab width to 4

Andrey Nering created

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.

Change summary

internal/tui/components/core/helpers.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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
 }