diff --git a/after/plugin/fugitive.lua b/after/plugin/fugitive.lua deleted file mode 100644 index 41f0512..0000000 --- a/after/plugin/fugitive.lua +++ /dev/null @@ -1,29 +0,0 @@ -vim.keymap.set("n", "gs", vim.cmd.Git) - -local ThePrimeagen_Fugitive = vim.api.nvim_create_augroup("ThePrimeagen_Fugitive", {}) - -local autocmd = vim.api.nvim_create_autocmd -autocmd("BufWinEnter", { - group = ThePrimeagen_Fugitive, - pattern = "*", - callback = function() - if vim.bo.ft ~= "fugitive" then - return - end - - 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'}) - 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, -}) diff --git a/lua/theprimeagen/packer.lua b/lua/theprimeagen/packer.lua index 079e68e..b853cfb 100644 --- a/lua/theprimeagen/packer.lua +++ b/lua/theprimeagen/packer.lua @@ -25,7 +25,6 @@ return require('packer').startup(function(use) use('nvim-treesitter/playground') use('theprimeagen/harpoon') use('mbbill/undotree') - use('tpope/vim-fugitive') use { 'VonHeikemen/lsp-zero.nvim',