Skip to content

Commit 65a1c6d

Browse files
committed
feat: remove auto bottom jumps
1 parent 384976a commit 65a1c6d

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

lua/gp/config.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ local config = {
121121
chat_finder_pattern = "topic ",
122122
-- if true, finished ChatResponder won't move the cursor to the end of the buffer
123123
chat_free_cursor = false,
124-
-- control whether to type G whenever the chat buffer is focused
125-
jump_to_bottom = true,
126124

127125
-- how to display GpChatToggle or GpContext: popup / split / vsplit / tabnew
128126
toggle_target = "vsplit",

lua/gp/init.lua

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,11 +1365,6 @@ M.prep_md = function(buf)
13651365
-- register shortcuts local to this buffer
13661366
buf = buf or vim.api.nvim_get_current_buf()
13671367

1368-
-- move cursor to a new line at the end of the file
1369-
if M.config.jump_to_bottom then
1370-
M._H.feedkeys("G", "x")
1371-
end
1372-
13731368
-- ensure normal mode
13741369
vim.api.nvim_command("stopinsert")
13751370
M._H.feedkeys("<esc>", "x")

0 commit comments

Comments
 (0)