fixing fugitive issue

This commit is contained in:
Lorne Stalker 2023-08-14 13:45:57 +01:00
parent f761a740a4
commit 2faba1bcba

View File

@ -16,13 +16,14 @@ return {
local bufnr = vim.api.nvim_get_current_buf()
local opts = {buffer = bufnr, remap = false}
vim.keymap.set("n", "<leader>P", function()
vim.cmd.Git('push')
end, opts)
-- rebase always
vim.keymap.set("n", "<leader>p", function()
vim.cmd.Git({'pull', '--rebase'})
vim.cmd.Git('pull')
end, opts)
-- NOTE: It allows me to easily set the branch i am pushing and any tracking