Update git-blame background to be same as the cursorline bg

pull/1315/head
Rakshit Sinha 5 months ago
parent 3e9eb8d1d7
commit 9467201766

@ -6,15 +6,20 @@ return {
-- The plugin wil only load once one of the keys is used. -- The plugin wil only load once one of the keys is used.
-- If you want to load the plugin at startup, add something like event = "VeryLazy", -- If you want to load the plugin at startup, add something like event = "VeryLazy",
-- or lazy = false. One of both options will work. -- or lazy = false. One of both options will work.
opts = { opts = function()
-- your configuration comes here local hl_cursor_line = vim.api.nvim_get_hl(0, { name = "CursorLine" })
-- for example local hl_comment = vim.api.nvim_get_hl(0, { name = "Comment" })
enabled = true, -- if you want to enable the plugin local hl_combined = vim.tbl_extend("force", hl_comment, { bg = hl_cursor_line.bg })
vim.api.nvim_set_hl(0, "CursorLineBlame", hl_combined)
return {
enabled = true,
highlight_group = "CursorLineBlame",
message_template = " <author> • <date> • <summary> • <<sha>>", -- template for the blame message, check the Message template section for more options message_template = " <author> • <date> • <summary> • <<sha>>", -- template for the blame message, check the Message template section for more options
date_format = "%b-%d-%Y", -- template for the date, check Date format section for more options date_format = "%b-%d-%Y", -- template for the date, check Date format section for more options
virtual_text_column = 80, -- virtual text start column, check Start virtual text at column section for more options virtual_text_column = 80, -- virtual text start column, check Start virtual text at column section for more options
message_when_not_committed = "Not committed yet", message_when_not_committed = "Not committed yet",
display_virtual_text = 1, display_virtual_text = 1,
highlight_group = "Question", -- highlight_group = "Question",
}, }
end,
} }

Loading…
Cancel
Save