Replace 'gitblame.nvim' with 'gitsigns.nvim'

This commit is contained in:
2025-06-28 13:46:57 +02:00
parent b8953fc74a
commit 058dc4107c
3 changed files with 9 additions and 12 deletions

View File

@@ -1,11 +0,0 @@
local gitblame = require("gitblame")
gitblame.setup({
enabled = false,
date_format = "%r",
message_template = " [<date> (<author>) <sha> <summary>]",
message_when_not_committed = " [Uncommitted changes]",
delay = 250,
})
-- vim.g.gitblame_virtual_text_column = 80

View File

@@ -0,0 +1,8 @@
local gitsigns = require("gitsigns")
gitsigns.setup({
current_line_blame_opts = { delay = 0 },
current_line_blame_formatter = "<author>, <author_time:%R> - <summary>",
})
vim.api.nvim_create_user_command("Blame", gitsigns.toggle_current_line_blame, { nargs = "?" })