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

@ -21,6 +21,10 @@ local plugin_list = {
{ "wakatime/vim-wakatime" }, -- Track time spent coding
{ "mhinz/vim-startify" }, -- Nice startup screen for vim when started withotu file/dir
{ "dbeniamine/cheat.sh-vim" }, -- Quick interaction with cheat.sh cheatsheets
{
"tveskag/nvim-blame-line", -- Show commit affecting cursor line
config = get_plugin_file("blame_line.lua")
},
{
"vimwiki/vimwiki", -- Wiki pages for vim
config = get_plugin_file("vimwiki.lua"),

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 = ''