fugitive: remove push map, update pull map

This commit is contained in:
2026-01-29 10:24:52 +02:00
parent 4b1dfbdf1d
commit 2472bedbec

View File

@@ -19,13 +19,9 @@ return {
local SwitchToMainbufnr = vim.api.nvim_get_current_buf() local SwitchToMainbufnr = vim.api.nvim_get_current_buf()
local opts = { buffer = bufnr, remap = false } local opts = { buffer = bufnr, remap = false }
vim.keymap.set('n', "<leader>p", function()
vim.cmd.Git('push')
end, opts)
-- rebase always -- rebase always
vim.keymap.set('n', "<leader>P", function() vim.keymap.set('n', "<leader>pu", function()
vim.cmd.Git({ 'pull', '--rebase' }) vim.cmd.Git({ 'pull --rebase origin main' })
end, opts) end, opts)
end, end,
}) })