Skip to content

Commit

Permalink
Fix typo in Optimize prompt message (#404)
Browse files Browse the repository at this point in the history
* fix(prompt): correct typo in Optimize prompt message

* fix: correct spelling of 'readability' in multiple files
  • Loading branch information
renxzen authored Sep 6, 2024
1 parent b8d713a commit 50a9877
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ See @deathbeam for [configuration](https://github.com/deathbeam/dotfiles/blob/ma
- `:CopilotChatExplain` - Write an explanation for the active selection as paragraphs of text
- `:CopilotChatReview` - Review the selected code
- `:CopilotChatFix` - There is a problem in this code. Rewrite the code to show it with the bug fixed
- `:CopilotChatOptimize` - Optimize the selected code to improve performance and readablilty
- `:CopilotChatOptimize` - Optimize the selected code to improve performance and readability
- `:CopilotChatDocs` - Please add documentation comment for the selection
- `:CopilotChatTests` - Please generate tests for my code
- `:CopilotChatFixDiagnostic` - Please assist with the following diagnostic issue in file
Expand Down Expand Up @@ -242,7 +242,7 @@ Also see [here](/lua/CopilotChat/config.lua):
prompt = '/COPILOT_GENERATE There is a problem in this code. Rewrite the code to show it with the bug fixed.',
},
Optimize = {
prompt = '/COPILOT_GENERATE Optimize the selected code to improve performance and readablilty.',
prompt = '/COPILOT_GENERATE Optimize the selected code to improve performance and readability.',
},
Docs = {
prompt = '/COPILOT_GENERATE Please add documentation comment for the selection.',
Expand Down
2 changes: 1 addition & 1 deletion cspell-tool.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ zbirenbaum
nnoremap
treyhunner
nekowasabi
readablilty
readability
deathbeam
jellydn's
gptlang
Expand Down
4 changes: 2 additions & 2 deletions doc/CopilotChat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ COMMANDS COMING FROM DEFAULT PROMPTS
- `:CopilotChatExplain` - Write an explanation for the active selection as paragraphs of text
- `:CopilotChatReview` - Review the selected code
- `:CopilotChatFix` - There is a problem in this code. Rewrite the code to show it with the bug fixed
- `:CopilotChatOptimize` - Optimize the selected code to improve performance and readablilty
- `:CopilotChatOptimize` - Optimize the selected code to improve performance and readability
- `:CopilotChatDocs` - Please add documentation comment for the selection
- `:CopilotChatTests` - Please generate tests for my code
- `:CopilotChatFixDiagnostic` - Please assist with the following diagnostic issue in file
Expand Down Expand Up @@ -271,7 +271,7 @@ Also see here </lua/CopilotChat/config.lua>:
prompt = '/COPILOT_GENERATE There is a problem in this code. Rewrite the code to show it with the bug fixed.',
},
Optimize = {
prompt = '/COPILOT_GENERATE Optimize the selected code to improve performance and readablilty.',
prompt = '/COPILOT_GENERATE Optimize the selected code to improve performance and readability.',
},
Docs = {
prompt = '/COPILOT_GENERATE Please add documentation comment for the selection.',
Expand Down
2 changes: 1 addition & 1 deletion lua/CopilotChat/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ return {
prompt = '/COPILOT_GENERATE There is a problem in this code. Rewrite the code to show it with the bug fixed.',
},
Optimize = {
prompt = '/COPILOT_GENERATE Optimize the selected code to improve performance and readablilty.',
prompt = '/COPILOT_GENERATE Optimize the selected code to improve performance and readability.',
},
Docs = {
prompt = '/COPILOT_GENERATE Please add documentation comment for the selection.',
Expand Down

0 comments on commit 50a9877

Please sign in to comment.