File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,8 @@ local config = {
121
121
chat_finder_pattern = " topic " ,
122
122
-- if true, finished ChatResponder won't move the cursor to the end of the buffer
123
123
chat_free_cursor = false ,
124
+ -- control whether to type G whenever the chat buffer is focused
125
+ jump_to_bottom = true ,
124
126
125
127
-- how to display GpChatToggle or GpContext: popup / split / vsplit / tabnew
126
128
toggle_target = " vsplit" ,
Original file line number Diff line number Diff line change @@ -1366,7 +1366,9 @@ M.prep_md = function(buf)
1366
1366
buf = buf or vim .api .nvim_get_current_buf ()
1367
1367
1368
1368
-- move cursor to a new line at the end of the file
1369
- M ._H .feedkeys (" G" , " x" )
1369
+ if M .config .jump_to_bottom then
1370
+ M ._H .feedkeys (" G" , " x" )
1371
+ end
1370
1372
1371
1373
-- ensure normal mode
1372
1374
vim .api .nvim_command (" stopinsert" )
You can’t perform that action at this time.
0 commit comments