The ChatGPTEditWithInstructions feature does not work properly with haskell-tools.nvim. When I try to use it on haskell code, I encounter an error and the syntax highlighting breaks. The error message is as follows:
Error executing vim.schedule lua callback: ...imPackages/start/ChatGPT.nvim/lua/chatgpt/code_edits.lua:70: FileType Autocommands for "haskell": Vim(append):haskell-tools: Could not determine the name of buffer 10.
stack traceback:
[C]: in function 'nvim_buf_set_option'
...imPackages/start/ChatGPT.nvim/lua/chatgpt/code_edits.lua:70: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
haskell-tools throws an error because it checks if a buffer has a name before it attaches, and the ChatGPT buffers don't have names. I verified that adding names to the ChatGPT buffers resolves the issue. Here is the code change I made to give names to the buffers:
The
ChatGPTEditWithInstructions
feature does not work properly with haskell-tools.nvim. When I try to use it onhaskell
code, I encounter an error and the syntax highlighting breaks. The error message is as follows:haskell-tools
throws an error because it checks if a buffer has a name before it attaches, and theChatGPT
buffers don't have names. I verified that adding names to theChatGPT
buffers resolves the issue. Here is the code change I made to give names to the buffers:To fix this issue, can buffer names be added to the ChatGPT buffers?