From b7505e4d1bf80ecac847e63d0d61ea9acc56c8c9 Mon Sep 17 00:00:00 2001 From: xinyangli Date: Tue, 20 Aug 2024 20:42:19 +0800 Subject: [PATCH] gitsigns: toggle preview after moving to next hunk --- config/default.nix | 2 +- config/{gitsign.nix => gitsigns.nix} | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) rename config/{gitsign.nix => gitsigns.nix} (96%) diff --git a/config/default.nix b/config/default.nix index 6efec20..ec53444 100644 --- a/config/default.nix +++ b/config/default.nix @@ -5,7 +5,7 @@ ./comment.nix ./core.nix ./direnv.nix - ./gitsign.nix + ./gitsigns.nix ./indent-blankline.nix ./keybindings.nix ./lsp diff --git a/config/gitsign.nix b/config/gitsigns.nix similarity index 96% rename from config/gitsign.nix rename to config/gitsigns.nix index 89bf197..f406bdb 100644 --- a/config/gitsign.nix +++ b/config/gitsigns.nix @@ -16,6 +16,7 @@ vim.cmd.normal({']c', bang = true}) else require("gitsigns").nav_hunk('next') + require("gitsigns").preview_hunk() end end '';