21 lines
432 B
Lua
21 lines
432 B
Lua
-- Git related plugins
|
|
return {
|
|
{
|
|
"lewis6991/gitsigns.nvim",
|
|
opts = {
|
|
current_line_blame = true,
|
|
current_line_blame_opts = {
|
|
virt_text = true,
|
|
delay = 0,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"tpope/vim-fugitive",
|
|
config = function ()
|
|
local map = require("helpers.keys").map
|
|
map("n", "<leader>ga", "<cmd>Git add %<cr>", "Stage the current file")
|
|
map("n", "<leader>gb", "<cmd>Git blame<cr>", "Show the blame")
|
|
end
|
|
}
|
|
}
|