The issue is: if I open the Copilot chat window and then edit and save my ~/.vimrc (for which I have an autosource as you can see below), attempting to open Copilot chat again produces the following error:
Error executing Lua callback: ...e/.vim/plugged/CopilotChat.nvim/lua/CopilotChat/chat.lua:43: Vim:E95: Buffer with this name already exists
stack traceback:
[C]: in function 'nvim_buf_set_name'
...e/.vim/plugged/CopilotChat.nvim/lua/CopilotChat/chat.lua:43: in function 'buf_create'
...vim/plugged/CopilotChat.nvim/lua/CopilotChat/overlay.lua:38: in function 'validate'
...e/.vim/plugged/CopilotChat.nvim/lua/CopilotChat/chat.lua:109: in function 'open'
...e/.vim/plugged/CopilotChat.nvim/lua/CopilotChat/init.lua:301: in function <...e/.vim/plugged/CopilotChat.nvim/lua/CopilotChat/init.lua:281>
The issue is: if I open the Copilot chat window and then edit and save my
~/.vimrc
(for which I have an autosource as you can see below), attempting to open Copilot chat again produces the following error:My vim config:
There is an easy workaround (close vim entirely and reopen), but it would be nice if this could be addressed.