commit 252e34514e007faec7479a695e9ef28fb5a081b4
parent b490ce195292e87e10283da01c20f520b89900c3
Author: Thomas Vigouroux <thomas.vigouroux@protonmail.com>
Date: Fri, 15 Apr 2022 09:14:13 +0200
fix(neogit): use better mappings for stage hunk
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lua/neogit-config.lua b/lua/neogit-config.lua
@@ -7,8 +7,8 @@ gitsigns.setup {
delay = 1000,
},
on_attach = function(bufnr)
- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<C-S>', '<cmd>Gitsigns stage_hunk<CR>', {})
- vim.api.nvim_buf_set_keymap(bufnr, 'v', '<C-S>', '<cmd>Gitsigns stage_hunk<CR>', {})
+ vim.api.nvim_buf_set_keymap(bufnr, 'n', '<C-S>', ':Gitsigns stage_hunk<CR>', {})
+ vim.api.nvim_buf_set_keymap(bufnr, 'v', '<C-S>', ':Gitsigns stage_hunk<CR>', {})
end
}