Skip to content

Commit

Permalink
Make line numbers easier to read
Browse files Browse the repository at this point in the history
  • Loading branch information
walles committed Aug 13, 2024
1 parent c379459 commit e68547a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions m/styling.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ func styleUI(chromaStyle *chroma.Style, chromaFormatter *chroma.Formatter, statu

chromaLineNumbers := twinStyleFromChroma(chromaStyle, chromaFormatter, chroma.LineNumbers, true)
if chromaLineNumbers != nil {
// If somebody can provide an example where not-dimmed line numbers
// looks good I'll change this, but until then they will be dimmed no
// matter what the theme authors think.
lineNumbersStyle = chromaLineNumbers.WithAttr(twin.AttrDim)
// NOTE: We used to dim line numbers here, but Johan found them too hard
// to read. If line numbers should look some other way for some Chroma
// style, go fix that in Chroma!
lineNumbersStyle = *chromaLineNumbers
}

if standoutStyle != nil {
Expand Down

0 comments on commit e68547a

Please sign in to comment.