Closed hipstersmoothie closed 4 years ago
This has now been implemented. See https://github.com/jesseduffield/lazygit/blob/master/docs/Custom_Pagers.md
If anybody would like to see changes to the feature, let me know :) closing
Is there a minimal example of how to get side by side diffs from this custom pager support? from the pictures it looks like ydiff will do the trick, is that the best option?
Edit found this from reddit:
cargo install git-delta
# Put this in ~/.config/lazygit/config.yml
git:
paging:
colorArg: always
pager: delta --dark --paging=never --syntax-theme base16-256 -s
For those who are new at lazygit, here is the step by step to make it show git diff side by side
Install git delta
$ brew install git-delta
Open the configuration file
Linux: ~/.config/lazygit/config.yml
MacOS: ~/Library/Application\ Support/lazygit/config.yml
Windows: %LOCALAPPDATA%\lazygit\config.yml (default location, but it will also be found in %APPDATA%\lazygit\config.yml
or
Linux: ~/.config/jesseduffield/lazygit/config.yml
MacOS: ~/Library/Application\ Support/jesseduffield/lazygit/config.yml
Windows: %APPDATA%\jesseduffield\lazygit\config.yml
Add the snipper from @haydenflinner
git:
paging:
colorArg: always
pager: delta --dark --paging=never --syntax-theme base16-256 -s
Close and reopen lazygit
Is your feature request related to a problem? Please describe.
I'm way better at reading side by side diffs
Describe the solution you'd like
LazyGit can be configured to show side by side diffs