File tree 2 files changed +33
-18
lines changed
plugins/by-name/copilot-chat
tests/test-sources/plugins/by-name/copilot-chat
2 files changed +33
-18
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,7 @@ helpers.neovim-plugin.mkNeovimPlugin {
258
258
mappings =
259
259
helpers . defaultNullOpts . mkAttrsOf
260
260
( types . submodule {
261
+ freeformType = with types ; attrsOf anything ;
261
262
options = {
262
263
normal = helpers . mkNullOrStr "Key for normal mode." ;
263
264
@@ -267,10 +268,7 @@ helpers.neovim-plugin.mkNeovimPlugin {
267
268
} ;
268
269
} )
269
270
{
270
- complete = {
271
- detail = "Use @<Tab> or /<Tab> for options." ;
272
- insert = "<Tab>" ;
273
- } ;
271
+ complete . insert = "<Tab>" ;
274
272
close = {
275
273
normal = "q" ;
276
274
insert = "<C-c>" ;
@@ -281,16 +279,26 @@ helpers.neovim-plugin.mkNeovimPlugin {
281
279
} ;
282
280
submit_prompt = {
283
281
normal = "<CR>" ;
284
- insert = "<C-m>" ;
282
+ insert = "<C-s>" ;
283
+ } ;
284
+ toggle_sticky = {
285
+ detail = "Makes line under cursor sticky or deletes sticky line." ;
286
+ normal = "gr" ;
285
287
} ;
286
288
accept_diff = {
287
289
normal = "<C-y>" ;
288
290
insert = "<C-y>" ;
289
291
} ;
290
- yank_diff . normal = "gy" ;
292
+ jump_to_diff . normal = "gj" ;
293
+ quickfix_diffs . normal = "gq" ;
294
+ yank_diff = {
295
+ normal = "gy" ;
296
+ register = "\" " ;
297
+ } ;
291
298
show_diff . normal = "gd" ;
292
- show_system_prompt . normal = "gp" ;
293
- show_user_selection . normal = "gs" ;
299
+ show_info . normal = "gi" ;
300
+ show_context . normal = "gc" ;
301
+ show_help . normal = "gh" ;
294
302
}
295
303
"Mappings for CopilotChat." ;
296
304
} ;
Original file line number Diff line number Diff line change 79
79
zindex = 1 ;
80
80
} ;
81
81
mappings = {
82
- complete = {
83
- detail = "Use @<Tab> or /<Tab> for options." ;
84
- insert = "<Tab>" ;
85
- } ;
82
+ complete . insert = "<Tab>" ;
86
83
close = {
87
84
normal = "q" ;
88
85
insert = "<C-c>" ;
93
90
} ;
94
91
submit_prompt = {
95
92
normal = "<CR>" ;
96
- insert = "<C-m>" ;
93
+ insert = "<C-s>" ;
94
+ } ;
95
+ toggle_sticky = {
96
+ detail = "Makes line under cursor sticky or deletes sticky line." ;
97
+ normal = "gr" ;
97
98
} ;
98
99
accept_diff = {
99
100
normal = "<C-y>" ;
100
101
insert = "<C-y>" ;
101
102
} ;
102
- yank_diff . normal = "gy" ;
103
+ jump_to_diff . normal = "gj" ;
104
+ quickfix_diffs . normal = "gq" ;
105
+ yank_diff = {
106
+ normal = "gy" ;
107
+ register = "\" " ;
108
+ } ;
103
109
show_diff . normal = "gd" ;
104
- show_system_prompt . normal = "gp" ;
105
- show_user_selection . normal = "gs" ;
110
+ show_info . normal = "gi" ;
111
+ show_context . normal = "gc" ;
112
+ show_help . normal = "gh" ;
106
113
} ;
107
114
} ;
108
115
} ;
158
165
} ;
159
166
yank_diff . normal = "gmy" ;
160
167
show_diff . normal = "gmd" ;
161
- show_system_prompt . normal = "gmp" ;
162
- show_user_selection . normal = "gms" ;
168
+ show_info . normal = "gmp" ;
169
+ show_context . normal = "gms" ;
163
170
} ;
164
171
} ;
165
172
} ;
You can’t perform that action at this time.
0 commit comments