gitsigns: toggle preview after moving to next hunk
This commit is contained in:
parent
03c3e0afe0
commit
b7505e4d1b
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
'';
|
'';
|
Loading…
Reference in a new issue