@@ -7,8 +7,20 @@ Your plugin configuration with its default values.
77Default values:
88>
99 CommitMsgSg.options = {
10- -- Prints useful logs about what event are triggered, and reasons actions are executed.
11- debug = false,
10+ ---@type string|function
11+ cwd = nil,
12+ auto_setup_gitcommit = true,
13+ auto_setup_command = true,
14+ on_attach = nil,
15+ ghost_text = "Thinking...",
16+ -- customized function to generate prompt string.
17+ prompt_gen = nil,
18+ default_prompt = nil,
19+ -- @private
20+ executor = "sg",
21+ -- Debug
22+ -- @private
23+ debug = false,
1224 }
1325
1426<
@@ -25,4 +37,28 @@ Usage ~
2537`require (" commit-msg-sg" ).setup ()` (add `{}` with your | CommitMsgSg.options | table)
2638
2739
40+ ==============================================================================
41+ ------------------------------------------------------------------------------
42+ *M.fetch_git_diff_as_text()*
43+ `M.fetch_git_diff_as_text` ({opts} )
44+ Parameters ~
45+ {opts} {callback?: `(function ,cmd?:table,cwd?:string })`
46+ parameters: {error?: string, output?:string}
47+
48+ ------------------------------------------------------------------------------
49+ *M.update_ghost_text()*
50+ `M.update_ghost_text` ({bufnr} , {text} )
51+ Update first line ghost text.
52+ Parameters ~
53+ {text} `(optional)` `(string )`
54+
55+
56+ ==============================================================================
57+ ------------------------------------------------------------------------------
58+ *M.execute()*
59+ `M.execute ` ({bufnr} , {snippet} , {callback} )
60+ @param snippet string
61+ @param callback function
62+
63+
2864 vim:tw=78:ts=8:noet:ft=help:norl:
0 commit comments