38 lines
933 B
Lua
38 lines
933 B
Lua
return {
|
|
{
|
|
'tpope/vim-fugitive',
|
|
},
|
|
{
|
|
'lewis6991/gitsigns.nvim',
|
|
config = function()
|
|
-- Setup --
|
|
require('gitsigns').setup()
|
|
|
|
-- Keybinding --
|
|
vim.keymap.set(
|
|
'n',
|
|
'<leader>gh',
|
|
':Gitsigns preview_hunk_inline<CR>',
|
|
{ desc = 'Toggle Inline Git Diff' }
|
|
)
|
|
vim.keymap.set(
|
|
'n',
|
|
'<leader>gb',
|
|
':Gitsigns toggle_current_line_blame<CR>',
|
|
{ desc = 'Toggle Inline Git Blame' }
|
|
)
|
|
vim.keymap.set(
|
|
'n',
|
|
'<leader>go',
|
|
':Git <CR>',
|
|
{ desc = 'Open Git' }
|
|
)
|
|
end,
|
|
},
|
|
{
|
|
'moyiz/git-dev.nvim',
|
|
lazy = true,
|
|
cmd = { 'GitDevOpen', 'GitDevCleanAll' },
|
|
opts = {},
|
|
},
|
|
}
|