blame.nvim is a fugitive.vim style git blame visualizer for Neovim.
Same commits are highlighted in the same color
{
"FabijanZulj/blame.nvim"
}
The following commands are used:
ToggleBlame [mode]
- Toggle the blame window or virtual text. If no mode is provided it opens thewindow
typeEnableBlame [mode]
- Enables the blame window or virtual text. If no mode is provided it opens thewindow
typeDisableBlame
- Disables the blame window or virtual text whichever is currently open
There are two modes:
window
- fugitive style window to the left of the windowvirtual
- blame shown in a virtual text floated to the right
These are the fields you can configure by passing them to the require('blame').setup({})
function:
width
- number - fixed width of the window (default: width of longest blame line + 8)date_format
- string - Pattern for the date (default: "%Y/%m/%d %H:%M")virtual_style
- "right_align" or "float" - Float moves the virtual text close to the content of the file. (default : "right_align")merge_consecutive
- boolean - Merge consecutive blames that are from the same commit