Robitx / gp.nvim

Gp.nvim (GPT prompt) Neovim AI plugin: ChatGPT sessions & Instructable text/code operations & Speech to text [OpenAI]
MIT License
537 stars 49 forks source link

feat(config): allow turning off G in GpChats #97

Closed rob-3 closed 5 months ago

rob-3 commented 5 months ago

I had some trouble with the behavior of always jumping to the bottom of chats. For long chats, switching to the chat buffer would always lose my scroll place and go to the bottom. I can type G myself easily enough, so this PR adds an option to disable this behavior and retain the old scroll place.

I think it's worth making this the default (jump_to_bottom = false) or just removing the M._H.feedkeys("G", "x") call altogether and removing this flag, but for compatibility the current PR makes no changes to existing behavior. Let me know what you think!

Robitx commented 5 months ago

pulled into #98