You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Catppuccin sets line-numbers = true in delta by default. This is non-trivial to disable, as there is no flag like --no-line-numbers (at least until clap-rs/clap#815).
After reading dandavison/delta#307, the best way I found1 was to add a delta "feature" to your gitconfig2:
[delta "no-line-numbers"]
line-numbers=false
Then either export DELTA_FEATURES=+no-line-numbers, or prefix it to your delta and git commands.
Since Catppuccin's theme is a delta "feature" itself, using another "feature" to override it is a bit of an edge case. I think we should either:
Document this in the README, or
Stop enabling line numbers by default.
Footnotes
Another way is to run git with git -c delta.line-numbers=false, but that only works when running delta via git. ↩
I opted to stop enabling line numbers by default. This seems much simpler for users to change themselves and the theme should minimize assumptions about user preferences anyways.
Catppuccin sets
line-numbers = true
in delta by default. This is non-trivial to disable, as there is no flag like--no-line-numbers
(at least until clap-rs/clap#815).After reading dandavison/delta#307, the best way I found1 was to add a delta "feature" to your gitconfig2:
Then either export
DELTA_FEATURES=+no-line-numbers
, or prefix it to your delta and git commands.Since Catppuccin's theme is a delta "feature" itself, using another "feature" to override it is a bit of an edge case. I think we should either:
Footnotes
Another way is to run git with
git -c delta.line-numbers=false
, but that only works when running delta via git. ↩https://github.com/dandavison/delta/issues/446 doesn't apply in this case, maybe because Catppuccin sets
line-numbers = true
in a "feature". ↩The text was updated successfully, but these errors were encountered: