• Stars
    star
    114
  • Rank 298,338 (Top 7 %)
  • Language
    Lua
  • License
    MIT License
  • Created 9 months ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Neovim fugitive style git blame plugin

🫡 blame.nvim

blame.nvim is a fugitive.vim style git blame visualizer for Neovim.

Window: window_blame_cut

Virtual: virtual_blame_cut

Same commits are highlighted in the same color

Installation

{
  "FabijanZulj/blame.nvim"
}

Usage

The following commands are used:

  • ToggleBlame [mode] - Toggle the blame window or virtual text. If no mode is provided it opens the window type
  • EnableBlame [mode] - Enables the blame window or virtual text. If no mode is provided it opens the window type
  • DisableBlame - Disables the blame window or virtual text whichever is currently open

There are two modes:

  • window - fugitive style window to the left of the window
  • virtual - blame shown in a virtual text floated to the right

Configuration

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