mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-13 03:37:17 +00:00
15 lines
501 B
Lua
15 lines
501 B
Lua
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 = ''
|