2024-05-13 18:43:31 +00:00
|
|
|
return {
|
|
|
|
{
|
|
|
|
"tpope/vim-fugitive",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"lewis6991/gitsigns.nvim",
|
|
|
|
config = function()
|
|
|
|
-- Setup --
|
|
|
|
require("gitsigns").setup()
|
|
|
|
|
|
|
|
-- Keybinding --
|
2024-06-02 17:45:00 +00:00
|
|
|
vim.keymap.set(
|
|
|
|
"n",
|
|
|
|
"<leader>gh",
|
|
|
|
":Gitsigns preview_hunk_inline<CR>",
|
|
|
|
{ desc = "Toggle Inline Git Diff" }
|
|
|
|
)
|
2024-06-02 17:11:54 +00:00
|
|
|
vim.keymap.set(
|
|
|
|
"n",
|
|
|
|
"<leader>gb",
|
|
|
|
":Gitsigns toggle_current_line_blame<CR>",
|
|
|
|
{ desc = "Toggle Inline Git Blame" }
|
|
|
|
)
|
2024-06-02 17:45:00 +00:00
|
|
|
vim.keymap.set(
|
|
|
|
"n",
|
|
|
|
"<leader>go",
|
|
|
|
":Git <CR>",
|
|
|
|
{ desc = "Open Git" }
|
|
|
|
)
|
2024-05-13 18:43:31 +00:00
|
|
|
end,
|
|
|
|
},
|
2024-06-02 17:30:27 +00:00
|
|
|
{
|
|
|
|
"moyiz/git-dev.nvim",
|
|
|
|
lazy = true,
|
|
|
|
cmd = { "GitDevOpen", "GitDevCleanAll" },
|
|
|
|
opts = {},
|
|
|
|
},
|
2024-06-02 17:11:54 +00:00
|
|
|
}
|