46
46
--- | 'changedelete'
47
47
--- | 'untracked'
48
48
49
- --- @class (exact ) Gitsigns.CurrentLineBlameFmtOpts
50
- --- @field relative_time boolean
51
-
52
- --- @alias Gitsigns.CurrentLineBlameFmtFun fun ( user : string , info : table<string,any> , opts : Gitsigns.CurrentLineBlameFmtOpts ): { [1] : string,[2] : string } []
49
+ --- @alias Gitsigns.CurrentLineBlameFmtFun fun ( user : string , info : table<string,any> ): { [1] : string,[2] : string } []
53
50
54
51
--- @class (exact ) Gitsigns.CurrentLineBlameOpts : Gitsigns.BlameOpts
55
52
--- @field virt_text ? boolean
85
82
--- @field update_debounce integer
86
83
--- @field status_formatter fun ( _ : table<string,any> ): string
87
84
--- @field current_line_blame boolean
88
- --- @field current_line_blame_formatter_opts { relative_time : boolean }
89
85
--- @field current_line_blame_formatter string | Gitsigns.CurrentLineBlameFmtFun
90
86
--- @field current_line_blame_formatter_nc string | Gitsigns.CurrentLineBlameFmtFun
91
87
--- @field current_line_blame_opts Gitsigns.CurrentLineBlameOpts
@@ -108,7 +104,6 @@ local M = {
108
104
DiffOpts = {},
109
105
SignConfig = {},
110
106
watch_gitdir = {},
111
- current_line_blame_formatter_opts = {},
112
107
current_line_blame_opts = {},
113
108
Worktree = {},
114
109
},
@@ -688,24 +683,9 @@ M.schema = {
688
683
]] ,
689
684
},
690
685
691
- current_line_blame_formatter_opts = {
692
- type = ' table' ,
693
- deep_extend = true ,
694
- deprecated = true ,
695
- default = {
696
- relative_time = false ,
697
- },
698
- description = [[
699
- Options for the current line blame annotation formatter.
700
-
701
- Fields: ~
702
- • relative_time: boolean
703
- ]] ,
704
- },
705
-
706
686
current_line_blame_formatter = {
707
687
type = { ' string' , ' function' },
708
- default = ' <author>, <author_time> - <summary> ' ,
688
+ default = ' <author>, <author_time:%R > - <summary> ' ,
709
689
description = [[
710
690
String or function used to format the virtual text of
711
691
|gitsigns-config-current_line_blame|.
@@ -774,9 +754,6 @@ M.schema = {
774
754
Note that the keys map onto the output of:
775
755
`git blame --line-porcelain`
776
756
777
- {opts} Passed directly from
778
- |gitsigns-config-current_line_blame_formatter_opts|.
779
-
780
757
Return: ~
781
758
The result of this function is passed directly to the `opts.virt_text`
782
759
field of |nvim_buf_set_extmark| and thus must be a list of
0 commit comments