aboutsummaryrefslogtreecommitdiff
path: root/config/nvim/lua/plugins.lua
diff options
context:
space:
mode:
authorCharles Cabergs <charles.cabergs@colruytgroup.com>2023-11-03 17:01:18 +0100
committerCharles Cabergs <charles.cabergs@colruytgroup.com>2023-11-03 17:01:18 +0100
commit663b1f5df68de0e9d23d1874ec7942df380ecab5 (patch)
treeb63530809e318f70573439272b38cf884df1a45d /config/nvim/lua/plugins.lua
parent861606bfc3edf5f96d53c2c5be2cda11933a55f9 (diff)
downloaddotfiles-663b1f5df68de0e9d23d1874ec7942df380ecab5.tar.gz
dotfiles-663b1f5df68de0e9d23d1874ec7942df380ecab5.tar.bz2
dotfiles-663b1f5df68de0e9d23d1874ec7942df380ecab5.zip
Add gitsigns shortcut to (un)stage hunk
Diffstat (limited to 'config/nvim/lua/plugins.lua')
-rw-r--r--config/nvim/lua/plugins.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua
index 7319d17..0820aeb 100644
--- a/config/nvim/lua/plugins.lua
+++ b/config/nvim/lua/plugins.lua
@@ -502,6 +502,22 @@ return require("packer").startup(function()
return "<Ignore>"
end
)
+ map(
+ "n",
+ "<leader>ga",
+ function()
+ vim.schedule(function() gs.stage_hunk() end)
+ return "<Ignore>"
+ end
+ )
+ map(
+ "n",
+ "<leader>gd",
+ function()
+ vim.schedule(function() gs.undo_stage_hunk() end)
+ return "<Ignore>"
+ end
+ )
end
}
end