I am using the PR Review guide here:DiffviewOpen origin/HEAD...HEAD --imply-local
This works really well and I am able to navigate using lsp in the right panel.
What would really enhance this experience would be after going to a definition or a reference of a symbol that is in another file, that it opens up that file as a diff if the file is part of the current diff already.
For example I have a PR with two files, one.go and two.go
A new function is defined in one.go and it is called in two.go.
When I open the diff on file two.go and use my lsp's go to definition on the function call, I would want one.go to open up as if I had just selected it from the file panel, with the rich diff and my cursor on the correct symbol.
I am using the PR Review guide here
:DiffviewOpen origin/HEAD...HEAD --imply-local
This works really well and I am able to navigate using lsp in the right panel.
What would really enhance this experience would be after going to a definition or a reference of a symbol that is in another file, that it opens up that file as a diff if the file is part of the current diff already.
For example I have a PR with two files,
one.go
andtwo.go
A new function is defined inone.go
and it is called intwo.go
.When I open the diff on file
two.go
and use my lsp's go to definition on the function call, I would wantone.go
to open up as if I had just selected it from the file panel, with the rich diff and my cursor on the correct symbol.Thanks!