neovim-config/lua/plugins/gitsigns.lua

21 lines
651 B
Lua
Raw Normal View History

2024-06-27 00:49:17 +00:00
return {
"lewis6991/gitsigns.nvim",
event = { "BufReadPre", "BufNewFile" },
opts = {
signs = {
add = { text = "" },
change = { text = "" },
delete = { text = "" },
topdelete = { text = "" },
changedelete = { text = "" },
untracked = { text = "" },
},
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>",
current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame`
},
keys = {
{ "]g", "<cmd>Gitsigns next_hunk<CR>", desc = "Next Git Hunk" },
{ "[g", "<cmd>Gitsigns prev_hunk<CR>", desc = "Previous Git Hunk" },
},
}