Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 15dd962

Browse files
mapping: Git Signs stage Hunk
Add mnemonic mappings to stage hunk using Git Signs using `H` key for Hunk Effectively moves original AstroNvim binding `SPC g s` to `SPC g H` which also matches upper case `SPC g S` to stage buffer
1 parent 9cbf5d5 commit 15dd962

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
## Added
33
- community: nvim-jqx plugin to view JSON files in neovim
44
- community: rest-nvim plugin to call REST endpoints from neovim
5+
- mapping: `SPC g H` key mapping for GitSigns stage hunk (orginally mapped to `SPC g s` in AstroNvim)
56

67

78
# 2023-07-08

mappings.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ return {
5252

5353
-- Git Menu
5454
-- Menu mappings
55-
["<leader>gh"] = false, -- disable Reset Git Hunk mapping, used for Octo
55+
["<leader>gh"] = false, -- disable Reset Git Hunk mapping, used for Octo in plugins/git.lua
56+
["<leader>gH"] = { function() require("gitsigns").stage_hunk() end, desc = "Stage Git hunk" },
5657
["<leader>gn"] = { name = " Neogit" }, -- Neogit menu
5758
-- quick save
5859
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command

0 commit comments

Comments
 (0)