From 3dbb63738bb0caae175c595622dd3d652644ba8a Mon Sep 17 00:00:00 2001 From: Ruslan Date: Wed, 3 Dec 2025 12:45:48 +0200 Subject: [PATCH] fugitive keymaps --- lua/crentist/lazy/fugitive.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lua/crentist/lazy/fugitive.lua b/lua/crentist/lazy/fugitive.lua index aa1c884..f799dfb 100644 --- a/lua/crentist/lazy/fugitive.lua +++ b/lua/crentist/lazy/fugitive.lua @@ -2,6 +2,7 @@ return { 'tpope/vim-fugitive', config = function() vim.keymap.set('n', "gs", vim.cmd.Git) + vim.keymap.set('n', "gl", function () vim.cmd.Git({ 'pull' }) end) vim.api.nvim_create_user_command('Gcm', function() vim.cmd.Git({ 'switch main' }) end, {}) @@ -26,10 +27,6 @@ return { vim.keymap.set('n', "P", function() vim.cmd.Git({ 'pull', '--rebase' }) end, opts) - - -- NOTE: It allows me to easily set the branch i am pushing and any tracking - -- needed if i did not set the branch up correctly - vim.keymap.set('n', "t", ":Git push -u origin ", opts); end, }) end