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