ChatGPT.nvim icon indicating copy to clipboard operation
ChatGPT.nvim copied to clipboard

Error when using response as input with `C-i`

Open ned-si opened this issue 2 years ago • 6 comments

After entering :ChatGPTEditWithInstructions and making my first request, I want to use the reponse as input and use C-i, but it gives me the following error:

E5108: Error executing lua: ...ack/packer/start/ChatGPT.nvim/lua/chatgpt/code_edits.lua:184: Expected Lua number                                                                                                                                                                                                  
stack traceback:
        [C]: in function 'nvim_set_current_win'
        ...ack/packer/start/ChatGPT.nvim/lua/chatgpt/code_edits.lua:184: in function <...ack/packer/start/ChatGPT.nvim/lua/chatgpt/code_edits.lua:179>

Any idea what's wrong?

EDIT: here is my config, in case it helps.

ned-si avatar Jan 03 '23 22:01 ned-si

I get the same ^

marcomayer avatar Jan 06 '23 11:01 marcomayer

me too ~ when i prese the <TAB> show this error.

E5108: Error executing lua: ....config/nvim/plugged/ChatGPT.nvim/lua/chatgpt/module.lua:189: Expected Lua number
stack traceback:
        [C]: in function 'nvim_set_current_win'
        ....config/nvim/plugged/ChatGPT.nvim/lua/chatgpt/module.lua:189: in function <....config/nvim/plugged/ChatGPT.nvim/lua/chatgpt/module.lua:181>

chenyingqiao avatar Feb 16 '23 03:02 chenyingqiao

same here

skimask9 avatar Mar 07 '23 17:03 skimask9

same here

ericklima-ca avatar Mar 09 '23 15:03 ericklima-ca

I think using <c-i> as default was not a great choice to begin with, despite how good mnemonics it as. The problem with most terminals is they interpret this combination as tab or something that includes tab

danielo515 avatar Jan 16 '24 11:01 danielo515

Any update on this? Seems broken even if you change the keybinding

CalamariDude avatar Feb 02 '24 10:02 CalamariDude