/blame.nvim

Show git commit messages ( inspired by VSCode Git Lens )

Primary LanguageLua

blame.nvim

Show git blame message for line under cursor. updates on each cursor movement

Installation

use { 'amirrezaask/blame.nvim', requires = {{'nvim-lua/plenary.nvim'}} }

Usage

-- sets up the autocmd for each cursor movements
require('blame').setup {
    prefix = 'your prefix',
    always = false -- settings this to true has some performance costs
}
-- or do it manually for current line using
require('blame').blame()
-- clear already showing blames
require('blame').clear()
-- also you can turn it off using
require('blame').off()

blame.nvim also registers some commands for easier usage

  • BlameToggle
  • BlameOff
  • BlameShow
  • BlameClear