tb-dotfiles/chezmoi/private_dot_config/nvim/lua/plugins/git.lua
2023-06-20 17:13:50 -04:00

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
}
}