on main help sign in
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.

commitd575f93394c3e61748a415307f4aa84ee24ce269 authorAndrey Nering <andreynering@users.noreply.github.com> dateTue 24 Jun 2025, 16:46 (1 year ago) parent90ce773
1 file changed+1−1
internal/tui/components/core/helpers.go+1−1
internal/tui/components/core/helpers.go+1−1
@@ -151,6 +151,6 @@ func DiffFormatter() *diffview.DiffView {
151151 t := styles.CurrentTheme()
152152 formatDiff := diffview.New()
153153 style := chroma.MustNewStyle("crush", styles.GetChromaTheme())
154− diff := formatDiff.ChromaStyle(style).Style(t.S().Diff)
154+ diff := formatDiff.ChromaStyle(style).Style(t.S().Diff).TabWidth(4)
155155 return diff
156156}