Skip to content

View diff for updates #127

Answered by folke
ranjithshegde asked this question in Q&A
Dec 23, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

you can now define different commands for git diff.

  • browser: opens the github compare view. Note that this is always mapped to <K> as well,
    so you can have a different command for diff <d>
  • git: will run git diff and open a buffer with filetype git
  • terminal_git: will open a pseudo terminal with git diff
  • diffview.nvim: will open Diffview to show the diff

You can diff/hover over a commit, or on a plugin. If on a plugin, then the diff will be opened related to updated or updates.

terminal_git (I'm using delta)

diffview.nvim

git

custom commands: lazygit

custom commands: terminal

Refer to the config section in the docs for more details

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ranjithshegde
Comment options

@nyngwang
Comment options

Answer selected by folke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants