Remove vim-fugitive

This commit is contained in:
Oliver Davies 2024-03-18 20:37:06 +00:00
parent 1b819937f7
commit 75f3877a13
2 changed files with 0 additions and 24 deletions

View file

@ -1,23 +0,0 @@
vim.keymap.set("n", "<leader>gc", "<cmd>Git commit<cr><C-w>K")
vim.keymap.set("n", "<leader>gs", "<cmd>Git<cr><C-w>K")
vim.api.nvim_create_autocmd("BufWinEnter", {
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", "<leader>p", function()
vim.cmd.Git "push"
end, opts)
vim.keymap.set("n", "<leader>P", function()
vim.cmd.Git { "pull", "--rebase" }
end, opts)
end,
})

View file

@ -157,7 +157,6 @@ in rec {
# Git
vimPlugins.committia-vim
vimPlugins.diffview-nvim
vimPlugins.vim-fugitive
# Debugging
vimPlugins.nvim-dap