vgit.nvim icon indicating copy to clipboard operation
vgit.nvim copied to clipboard

Doesn't track updates from external program

Open timsofteng opened this issue 4 years ago • 1 comments

Description

Hello. I'm using lazygit to work with git. When I got to lazygit in external terminal window and make some changes (commit, revert, or whatever) and then back to nvim with enabled vgit it doesn't react to any changes.

Can you fix it please?

  • nvim --version 0.5;
  • Nixo unstable

timsofteng avatar Jul 07 '21 13:07 timsofteng

Hi @timsofteng I have not used lazygit, can you emulate what lazygit does with regular git commands and report the commands back to me? Detailing the problem better allows me to find a solution easier.

I have a few more follow-up questions:

  • Does the problem persist when you refresh the buffer?
  • Are you still working within the directory where .git folder is located after making these changes?

tanvirtin avatar Jul 07 '21 20:07 tanvirtin

Lazygit mostly just calls git under the hood.

Here's an example of a plain git commit change not being tracked by vgit until a buffer is reloaded:

https://user-images.githubusercontent.com/49961859/199032674-61d9ca41-1c09-47e7-b12c-a4fe10bc15aa.mp4

I think in gitsigns they refresh this automatically somehow.

paveloom avatar Oct 31 '22 14:10 paveloom

Same here. @paveloom can confirm that lewis6991/gitsigns.nvim refreshes automatically.

xfzv avatar Jan 27 '23 08:01 xfzv

@tanvirtin is #331 supposed to fix this with kdheepak/lazygit.nvim too?

It still doesn't refresh correctly for me after committing some changes via lazygit.nvim.

xfzv avatar Feb 09 '23 08:02 xfzv