Remove lazygit and fugitive, add neogit

This commit is contained in:
Martin Larsson 2024-07-12 10:30:33 +02:00
parent 7a81af9ab4
commit 80f1f521cc
4 changed files with 20 additions and 54 deletions

View file

@ -1,36 +0,0 @@
return {
"tpope/vim-fugitive",
config = function()
require("utils").add_keymaps({
n = {
["<leader>gp"] = {
cmd = ":Gitsigns preview_hunk_inline<CR>",
},
["<leader>gt"] = {
cmd = ":Gitsigns toggle_current_line_blame<CR>",
},
["<leader>ga"] = {
cmd = ":Gwrite<CR>",
},
["<Leader>gr"] = {
cmd = ":Gread<CR>",
},
["<Leader>gs"] = {
cmd = ":G<CR>",
},
["<Leader>gd"] = {
cmd = ":Gdiffsplit<CR>",
},
["<Leader>gc"] = {
cmd = ":G commit<CR>",
},
["<Leader>gl"] = {
cmd = ":G log<CR>",
},
["<Leader>gb"] = {
cmd = ":G blame<CR>",
},
}
})
end
}

View file

@ -76,6 +76,17 @@ return {
{ " " }
}
end,
require("utils").add_keymaps({
n = {
["<leader>gp"] = {
cmd = ":Gitsigns preview_hunk_inline<CR>",
},
["<leader>gt"] = {
cmd = ":Gitsigns toggle_current_line_blame<CR>",
},
}
})
})
end,
event = "VeryLazy",

View file

@ -1,18 +0,0 @@
return {
"kdheepak/lazygit.nvim",
cmd = {
"LazyGit",
"LazyGitConfig",
"LazyGitCurrentFile",
"LazyGitFilter",
"LazyGitFilterCurrentFile",
},
dependencies = {
"nvim-lua/plenary.nvim",
},
-- setting the keybinding for LazyGit with 'keys' is recommended in
-- order to load the plugin when the command is run for the first time
keys = {
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
}
}

View file

@ -0,0 +1,9 @@
return {
"NeogitOrg/neogit",
dependencies = {
"nvim-lua/plenary.nvim",
"sindrets/diffview.nvim",
"nvim-telescope/telescope.nvim",
},
config = true
}