Show git blame message for line under cursor. updates on each cursor movement
use { 'amirrezaask/blame.nvim', requires = {{'nvim-lua/plenary.nvim'}} }
-- 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