Skip to content

Commit 50a9877

Browse files
authored
Fix typo in Optimize prompt message (CopilotC-Nvim#404)
* fix(prompt): correct typo in Optimize prompt message * fix: correct spelling of 'readability' in multiple files
1 parent b8d713a commit 50a9877

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ See @deathbeam for [configuration](https://github.com/deathbeam/dotfiles/blob/ma
116116
- `:CopilotChatExplain` - Write an explanation for the active selection as paragraphs of text
117117
- `:CopilotChatReview` - Review the selected code
118118
- `:CopilotChatFix` - There is a problem in this code. Rewrite the code to show it with the bug fixed
119-
- `:CopilotChatOptimize` - Optimize the selected code to improve performance and readablilty
119+
- `:CopilotChatOptimize` - Optimize the selected code to improve performance and readability
120120
- `:CopilotChatDocs` - Please add documentation comment for the selection
121121
- `:CopilotChatTests` - Please generate tests for my code
122122
- `:CopilotChatFixDiagnostic` - Please assist with the following diagnostic issue in file
@@ -242,7 +242,7 @@ Also see [here](/lua/CopilotChat/config.lua):
242242
prompt = '/COPILOT_GENERATE There is a problem in this code. Rewrite the code to show it with the bug fixed.',
243243
},
244244
Optimize = {
245-
prompt = '/COPILOT_GENERATE Optimize the selected code to improve performance and readablilty.',
245+
prompt = '/COPILOT_GENERATE Optimize the selected code to improve performance and readability.',
246246
},
247247
Docs = {
248248
prompt = '/COPILOT_GENERATE Please add documentation comment for the selection.',

cspell-tool.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ zbirenbaum
5252
nnoremap
5353
treyhunner
5454
nekowasabi
55-
readablilty
55+
readability
5656
deathbeam
5757
jellydn's
5858
gptlang

doc/CopilotChat.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ COMMANDS COMING FROM DEFAULT PROMPTS
142142
- `:CopilotChatExplain` - Write an explanation for the active selection as paragraphs of text
143143
- `:CopilotChatReview` - Review the selected code
144144
- `:CopilotChatFix` - There is a problem in this code. Rewrite the code to show it with the bug fixed
145-
- `:CopilotChatOptimize` - Optimize the selected code to improve performance and readablilty
145+
- `:CopilotChatOptimize` - Optimize the selected code to improve performance and readability
146146
- `:CopilotChatDocs` - Please add documentation comment for the selection
147147
- `:CopilotChatTests` - Please generate tests for my code
148148
- `:CopilotChatFixDiagnostic` - Please assist with the following diagnostic issue in file
@@ -271,7 +271,7 @@ Also see here </lua/CopilotChat/config.lua>:
271271
prompt = '/COPILOT_GENERATE There is a problem in this code. Rewrite the code to show it with the bug fixed.',
272272
},
273273
Optimize = {
274-
prompt = '/COPILOT_GENERATE Optimize the selected code to improve performance and readablilty.',
274+
prompt = '/COPILOT_GENERATE Optimize the selected code to improve performance and readability.',
275275
},
276276
Docs = {
277277
prompt = '/COPILOT_GENERATE Please add documentation comment for the selection.',

lua/CopilotChat/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ return {
157157
prompt = '/COPILOT_GENERATE There is a problem in this code. Rewrite the code to show it with the bug fixed.',
158158
},
159159
Optimize = {
160-
prompt = '/COPILOT_GENERATE Optimize the selected code to improve performance and readablilty.',
160+
prompt = '/COPILOT_GENERATE Optimize the selected code to improve performance and readability.',
161161
},
162162
Docs = {
163163
prompt = '/COPILOT_GENERATE Please add documentation comment for the selection.',

0 commit comments

Comments
 (0)