Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

Commit 0117478

Browse files
committed
doc: generate
1 parent a32a70d commit 0117478

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

doc/commit-msg-sg.txt

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,20 @@ Your plugin configuration with its default values.
77
Default 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:

doc/tags

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
CommitMsgSg.options commit-msg-sg.txt /*CommitMsgSg.options*
22
CommitMsgSg.setup() commit-msg-sg.txt /*CommitMsgSg.setup()*
3+
M.execute() commit-msg-sg.txt /*M.execute()*
4+
M.fetch_git_diff_as_text() commit-msg-sg.txt /*M.fetch_git_diff_as_text()*
5+
M.update_ghost_text() commit-msg-sg.txt /*M.update_ghost_text()*

0 commit comments

Comments
 (0)