|
@ -26,12 +26,14 @@ return { |
|
|
vim.cmd(string.format('Git show %s', gitBlame({vim.fn.line('.'), vim.fn.line('.')}))) |
|
|
vim.cmd(string.format('Git show %s', gitBlame({vim.fn.line('.'), vim.fn.line('.')}))) |
|
|
end) |
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|
local options = { noremap = true, silent = true } |
|
|
|
|
|
|
|
|
-- vim.keymap.set('n', '<leader>gp', '<cmd>Git push<CR>', options) |
|
|
|
|
|
-- vim.keymap.set('n', '<leader>gP', '<cmd>Git pull<CR>', options) |
|
|
|
|
|
-- vim.keymap.set('n', '<leader>ga', '<cmd>Git add .<CR>', options) |
|
|
|
|
|
-- vim.keymap.set('n', '<leader>gA', '<cmd>Git add<CR>', options) |
|
|
|
|
|
-- vim.keymap.set('n', '<leader>gc', '<cmd>Git commit<CR>', options) |
|
|
|
|
|
-- vim.keymap.set('n', '<leader>gC', '<cmd>Git commit -a<CR>', options) |
|
|
|
|
|
|
|
|
vim.keymap.set('n', '<leader>gg', '<cmd>Git<CR>', options) |
|
|
|
|
|
vim.keymap.set('n', '<leader>gp', '<cmd>Git push<CR>', options) |
|
|
|
|
|
vim.keymap.set('n', '<leader>gP', '<cmd>Git pull<CR>', options) |
|
|
|
|
|
vim.keymap.set('n', '<leader>ga', '<cmd>Git add .<CR>', options) |
|
|
|
|
|
vim.keymap.set('n', '<leader>gA', '<cmd>Git add<CR>', options) |
|
|
|
|
|
vim.keymap.set('n', '<leader>gc', '<cmd>Git commit<CR>', options) |
|
|
|
|
|
vim.keymap.set('n', '<leader>gC', '<cmd>Git commit -a<CR>', options) |
|
|
end, |
|
|
end, |
|
|
} |
|
|
} |