Skip to content

Commit

Permalink
feat: remove auto bottom jumps
Browse files Browse the repository at this point in the history
  • Loading branch information
Robitx committed Jan 25, 2024
1 parent bec8e6f commit a78d82b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions lua/gp/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ local config = {
chat_finder_pattern = "topic ",
-- if true, finished ChatResponder won't move the cursor to the end of the buffer
chat_free_cursor = false,
-- control whether to type G whenever the chat buffer is focused
jump_to_bottom = true,

-- how to display GpChatToggle or GpContext: popup / split / vsplit / tabnew
toggle_target = "vsplit",
Expand Down
5 changes: 0 additions & 5 deletions lua/gp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1365,11 +1365,6 @@ M.prep_md = function(buf)
-- register shortcuts local to this buffer
buf = buf or vim.api.nvim_get_current_buf()

-- move cursor to a new line at the end of the file
if M.config.jump_to_bottom then
M._H.feedkeys("G", "x")
end

-- ensure normal mode
vim.api.nvim_command("stopinsert")
M._H.feedkeys("<esc>", "x")
Expand Down

0 comments on commit a78d82b

Please sign in to comment.