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