23 lines
617 B
Lua
23 lines
617 B
Lua
return {
|
|
'f-person/git-blame.nvim',
|
|
config = function()
|
|
local gitblame = require('gitblame')
|
|
gitblame.setup({
|
|
enabled = true,
|
|
date_format = '%r'
|
|
})
|
|
vim.keymap.set("n", "<leader>gbt", function()
|
|
gitblame.toggle()
|
|
end)
|
|
|
|
local CrentistGitBlame = vim.api.nvim_create_augroup("CrentistGitBlame", {})
|
|
vim.api.nvim_create_autocmd({ "FileType" }, {
|
|
group = CrentistGitBlame,
|
|
pattern = "netrw",
|
|
callback = function()
|
|
gitblame.disable()
|
|
end,
|
|
})
|
|
end
|
|
}
|