From 2faba1bcbabd81c9303515f28ad93e4db07e9a7c Mon Sep 17 00:00:00 2001 From: Lorne Stalker Date: Mon, 14 Aug 2023 13:45:57 +0100 Subject: [PATCH] fixing fugitive issue --- lua/lornest/plugins/fugitive.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/lornest/plugins/fugitive.lua b/lua/lornest/plugins/fugitive.lua index bacbe6a9..ee98fc3f 100644 --- a/lua/lornest/plugins/fugitive.lua +++ b/lua/lornest/plugins/fugitive.lua @@ -16,13 +16,14 @@ return { local bufnr = vim.api.nvim_get_current_buf() local opts = {buffer = bufnr, remap = false} + vim.keymap.set("n", "P", function() vim.cmd.Git('push') end, opts) -- rebase always vim.keymap.set("n", "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