mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 05:04:34 +00:00
Add git blame line nvim plugin
This commit is contained in:
parent
7d3eb5ae69
commit
8b1d872d37
|
@ -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"),
|
||||
|
|
14
home/.config/nvim/lua/plugins/settings/blame_line.lua
Normal file
14
home/.config/nvim/lua/plugins/settings/blame_line.lua
Normal 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 = ''
|
Loading…
Reference in a new issue