You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using diffview.nvim in conjunction with Neogit and gitsigns. When I enter diffview for a modified file that hasn't been staged yet there is section titled Changes in the left side bar. I then stage an individual hunk but this does not result in the update of the side bar. If I close and reopen the diff viewer, I see both Changes and Staged changes sections as expected.
Expected behavior
When individual hunks are staged, I expect the UI to also update and show both Changes and Staged changes sections without having to reload the viewer.
Actual behavior
Screencast_20240909_193140.webm
Steps to reproduce
Here is the Lazy config for Diffview.nvim, Neogit and GitSigns:
diffview: require("diffview.health").check()
Checking plugin dependencies ~
- OK nvim-web-devicons installed.
Checking VCS tools ~
- The plugin requires at least one of the supported VCS tools to be valid.
- OK Git found.
- OK Git is up-to-date. (2.45.2)
- WARNING Configured `hg_cmd` is not executable: 'hg'
Log info
Relevant info from :DiffviewLog
[INFO 2024-09-09 19:24:49.730 +0100] .../diffview.nvim/lua/diffview/api/views/diff/diff_view.lua:35: [api] Creating a new Custom DiffView.
[INFO 2024-09-09 19:25:02.405 +0100] .../diffview.nvim/lua/diffview/api/views/diff/diff_view.lua:35: [api] Creating a new Custom DiffView.
[INFO 2024-09-09 19:25:23.580 +0100] ...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua:488: [CDiffView] Completed update for 1 files successfully (807.622 ms)
[INFO 2024-09-09 19:25:23.747 +0100] ...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua:488: [CDiffView] Completed update for 1 files successfully (1849.020 ms)
[INFO 2024-09-09 19:25:25.282 +0100] ...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua:488: [CDiffView] Completed update for 0 files successfully (68.478 ms)
[INFO 2024-09-09 19:25:42.141 +0100] .../diffview.nvim/lua/diffview/api/views/diff/diff_view.lua:35: [api] Creating a new Custom DiffView.
[INFO 2024-09-09 19:26:00.682 +0100] ...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua:488: [CDiffView] Completed update for 1 files successfully (1316.095 ms)
[INFO 2024-09-09 19:27:08.029 +0100] .../diffview.nvim/lua/diffview/api/views/diff/diff_view.lua:35: [api] Creating a new Custom DiffView.
[INFO 2024-09-09 19:27:16.022 +0100] ...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua:488: [CDiffView] Completed update for 1 files successfully (1572.166 ms)
[INFO 2024-09-09 19:27:25.030 +0100] .../diffview.nvim/lua/diffview/api/views/diff/diff_view.lua:35: [api] Creating a new Custom DiffView.
[INFO 2024-09-09 19:28:09.816 +0100] .../diffview.nvim/lua/diffview/api/views/diff/diff_view.lua:35: [api] Creating a new Custom DiffView.
[INFO 2024-09-09 19:28:18.373 +0100] ...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua:488: [CDiffView] Completed update for 1 files successfully (1302.704 ms)
[INFO 2024-09-09 19:28:30.348 +0100] .../diffview.nvim/lua/diffview/api/views/diff/diff_view.lua:35: [api] Creating a new Custom DiffView.
[INFO 2024-09-09 19:29:18.406 +0100] .../diffview.nvim/lua/diffview/api/views/diff/diff_view.lua:35: [api] Creating a new Custom DiffView.
[INFO 2024-09-09 19:30:09.903 +0100] .../diffview.nvim/lua/diffview/api/views/diff/diff_view.lua:35: [api] Creating a new Custom DiffView.
[INFO 2024-09-09 19:30:19.239 +0100] ...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua:488: [CDiffView] Completed update for 1 files successfully (1668.020 ms)
[INFO 2024-09-09 19:30:28.278 +0100] .../diffview.nvim/lua/diffview/api/views/diff/diff_view.lua:35: [api] Creating a new Custom DiffView.
[INFO 2024-09-09 19:30:58.521 +0100] .../diffview.nvim/lua/diffview/api/views/diff/diff_view.lua:35: [api] Creating a new Custom DiffView.
[INFO 2024-09-09 19:31:09.299 +0100] ...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua:488: [CDiffView] Completed update for 1 files successfully (1548.317 ms)
[INFO 2024-09-09 19:31:44.624 +0100] .../diffview.nvim/lua/diffview/api/views/diff/diff_view.lua:35: [api] Creating a new Custom DiffView.
[INFO 2024-09-09 19:31:53.077 +0100] ...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua:488: [CDiffView] Completed update for 1 files successfully (1199.744 ms)
[INFO 2024-09-09 19:32:05.025 +0100] .../diffview.nvim/lua/diffview/api/views/diff/diff_view.lua:35: [api] Creating a new Custom DiffView.
[ERROR 2024-09-09 19:43:47.423 +0100] ...LAZY/DIFFVIEW.NVIM/LUA/DIFFVIEW/VCS/ADAPTERS/HG/INIT.LUA:53: [HGADAPTER] CONFIGURED `HG_CMD` IS NOT EXECUTABLE: 'HG'
Description
I am using
diffview.nvim
in conjunction withNeogit
andgitsigns
. When I enter diffview for a modified file that hasn't been staged yet there is section titledChanges
in the left side bar. I then stage an individual hunk but this does not result in the update of the side bar. If I close and reopen the diff viewer, I see bothChanges
andStaged changes
sections as expected.Expected behavior
When individual hunks are staged, I expect the UI to also update and show both
Changes
andStaged changes
sections without having to reload the viewer.Actual behavior
Screencast_20240909_193140.webm
Steps to reproduce
Here is the Lazy config for Diffview.nvim, Neogit and GitSigns:
Health check
Output of
:checkhealth diffview
Log info
Relevant info from
:DiffviewLog
Neovim version
Operating system and version
Linux 3.10.0-1160.105.1.el7.x86_64 x86_64 GNU/Linux
Minimal config
The text was updated successfully, but these errors were encountered: