gitsigns: toggle preview after moving to next hunk

This commit is contained in:
xinyangli 2024-08-20 20:42:19 +08:00
parent 03c3e0afe0
commit b7505e4d1b
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk
2 changed files with 2 additions and 1 deletions

View file

@ -5,7 +5,7 @@
./comment.nix ./comment.nix
./core.nix ./core.nix
./direnv.nix ./direnv.nix
./gitsign.nix ./gitsigns.nix
./indent-blankline.nix ./indent-blankline.nix
./keybindings.nix ./keybindings.nix
./lsp ./lsp

View file

@ -16,6 +16,7 @@
vim.cmd.normal({']c', bang = true}) vim.cmd.normal({']c', bang = true})
else else
require("gitsigns").nav_hunk('next') require("gitsigns").nav_hunk('next')
require("gitsigns").preview_hunk()
end end
end end
''; '';