You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 15, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: lua/commit-msg-sg/init.lua
+23-19Lines changed: 23 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@ local utils = require('commit-msg-sg.utils')
5
5
localwritters= {}
6
6
7
7
localprompt_str=[[
8
-
You are a git expert and experienced programmer that are here to help me write a git commit message in a git repo.\n
9
-
1. Generate concise and accurate git commit message based on the git diff that provided later with focus on the changed lines that start with "+","-".\n
10
-
2. Do not add additional information about the response, like how the generated content is better and follow the rules/standards.\n
11
-
4. The generated git commit message follow the Conventional commits standard.\n
12
-
6. Avoid duplicating the diff content.\n
13
-
The diff output:\n
14
-
```diff\n%s```
8
+
You are a git expert and experienced programmer that are here to help me write a git commit message in a git repo.
9
+
1. Generate concise and accurate git commit message based on the git diff that provided later with focus on the changed lines that start with "+","-".
10
+
2. Do not add additional information about the response, like how the generated content is better and follow the rules/standards.
11
+
4. The generated git commit message follow the Conventional commits standard.
12
+
6. Avoid duplicating the diff content.
13
+
The diff output:
14
+
```diff%s```
15
15
]]
16
16
17
17
localfunctionon_attach(client, bufnr, opts)
@@ -26,13 +26,13 @@ function M.setup(opts)
26
26
opts=optsor {}
27
27
localon_attach_=opts.on_attach
28
28
opts.on_attach=function(client, bufnr)
29
-
on_attach(client, bufnr, opts)
29
+
on_attach(client, bufnr, config.options)
30
30
ifon_attach_then
31
31
on_attach_(client, bufnr)
32
32
end
33
33
end
34
34
config.setup(opts)
35
-
ifconfig.options.default_promptandconfig.options.default_prompt~='' then
35
+
ifconfig.options.default_promptandconfig.options.default_promptandconfig.options.default_prompt~='' then
0 commit comments