Robitx / gp.nvim

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

bug: error changing buffer while generating response #74

Closed teocns closed 10 months ago

teocns commented 10 months ago
Error executing vim.schedule lua callback: vim/_editor.lua:0: nvim_exec2(): Vim(undojoin):E790: undojoin is not allowed after undo
stack traceback:
        [C]: in function 'nvim_exec2'
        vim/_editor.lua: in function 'cmd'
        ...rs/beyond/.local/share/nvim/lazy/gp.nvim/lua/gp/init.lua:1139: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
Robitx commented 10 months ago

@teocns thanks for the report - undojoin is a unfortunate legacy from vim which is not exactly ready for async work across multiple buffers, I'll silence the E790 (it's harmless but annoying).