update lazygit config
This commit is contained in:
parent
1907cbfdf0
commit
502d0dc78a
2 changed files with 30 additions and 27 deletions
|
|
@ -56,30 +56,6 @@ return {
|
|||
The user can ask follow up question, which needs to follow the same rules.
|
||||
]]
|
||||
},
|
||||
Explain = {
|
||||
prompt = '> /COPILOT_EXPLAIN\n\nWrite an explanation for the selected code as paragraphs of text.',
|
||||
},
|
||||
Review = {
|
||||
prompt = '> /COPILOT_REVIEW\n\nReview the selected code.',
|
||||
-- see config.lua for implementation
|
||||
},
|
||||
Fix = {
|
||||
prompt =
|
||||
'> /COPILOT_GENERATE\n\nThere is a problem in this code. Rewrite the code to show it with the bug fixed.',
|
||||
},
|
||||
Optimize = {
|
||||
prompt = '> /COPILOT_GENERATE\n\nOptimize the selected code to improve performance and readability.',
|
||||
},
|
||||
Docs = {
|
||||
prompt = '> /COPILOT_GENERATE\n\nPlease add documentation comments to the selected code.',
|
||||
},
|
||||
Tests = {
|
||||
prompt = '> /COPILOT_GENERATE\n\nPlease generate tests for my code.',
|
||||
},
|
||||
Commit = {
|
||||
prompt =
|
||||
'> #git:staged\n\nWrite commit message for the change with commitizen convention. Make sure the title has maximum 50 characters and message is wrapped at 72 characters. Wrap the whole message in code block with language gitcommit.',
|
||||
},
|
||||
},
|
||||
question_header = " " .. vim.env.USER or "User" .. " ",
|
||||
answer_header = " Copilot ",
|
||||
|
|
@ -162,5 +138,11 @@ return {
|
|||
end,
|
||||
desc = "Set debug level",
|
||||
},
|
||||
{
|
||||
"<leader>ad",
|
||||
"<CMD>CopilotChatDocs<CR>",
|
||||
desc = "Generate documentation",
|
||||
mode = { "n", "v" },
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue