Restore vim-fugitive, replace lazygit integration

This commit is contained in:
Evie Litherland-Smith 2023-02-24 07:58:47 +00:00
parent da112b242e
commit 7ce0fc9438
4 changed files with 19 additions and 7 deletions

View file

@ -26,7 +26,7 @@ return {
icon_hl = "@variable",
desc = "Git",
group = "Label",
action = "LazyGit",
action = "Git",
key = "g",
},
{

View file

@ -21,8 +21,11 @@ vim.keymap.set("n", "<leader>fz", "<cmd>Telescope current_buffer_fuzzy_find<cr>"
vim.keymap.set("n", "<leader>n", "<cmd>Neotree toggle<cr>")
vim.keymap.set("n", "<leader>\\", "<cmd>Neotree reveal<cr>")
-- LazyGit
vim.keymap.set("n", "<leader>gg", "<cmd>LazyGit<cr>")
-- Git
vim.keymap.set("n", "<leader>gg", "<cmd>Git<cr>")
vim.keymap.set("n", "<leader>gc", "<cmd>Git commit<cr>")
vim.keymap.set("n", "<leader>gl", "<cmd>Git pull<cr>")
vim.keymap.set("n", "<leader>gp", "<cmd>Git push<cr>")
-- diffview
vim.keymap.set("n", "<leader>do", "<cmd>DiffviewOpen<cr>")

View file

@ -0,0 +1,13 @@
return {
{
"tpope/vim-fugitive",
},
{
"tpope/vim-rhubarb",
dependencies = "tpope/vim-fugitive",
},
{
"shumphrey/fugitive-gitlab.vim",
dependencies = "tpope/vim-fugitive",
},
}

View file

@ -1,4 +0,0 @@
return {
"kdheepak/lazygit.nvim",
cmd = { "LazyGit", "LazyGitConfig" },
}