Skip to content
Discussion options

You must be logged in to vote

Hi @gc-rfranco! Try Diffview's --imply-local option:

:DiffviewOpen master...HEAD --imply-local

This compares your working tree against the common ancestor with master, so committed branch changes stay visible too. The right pane uses your local files, so you can edit them with your usual LSP.

To enable it for Neogit's range diffs too, add this to your Diffview setup:

default_args = {
  DiffviewOpen = { "--imply-local" },
},

Swap master for your base branch if needed.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gc-rfranco
Comment options

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