Add git blame line nvim plugin

This commit is contained in:
ItsDrike 2021-12-10 00:53:08 +01:00
parent 7d3eb5ae69
commit 8b1d872d37
No known key found for this signature in database
GPG key ID: FB8CA11A2CF3A843
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,14 @@
local vim = require("vim")
local m = require("utility.mappings")
m.keymap("n", "<A-b>", ":ToggleBlameLine<CR>")
-- Enable blame line automatically
--vim.cmd[[autocmd BufEnter * EnableBlameLine]]
-- Specify the highlight group used for the virtual text ('Comment' by default)
vim.g.blameLineVirtualTextHighlight = 'Question'
-- Don't show a blame line when it isn't yet commited
-- there's no reason to show "Not yet commited" since we have git gutter
vim.g.blameLineMessageWhenNotYetCommited = ''