fix empty buffer when terminal provider is none
Extract the marking of the current buffer to ephemeral when tabnew is applied.
Use this function at every early return site where vim.cmd(tabnew) is called.
Fixes: #208
Any news?
@Davydhh nah, just riding my fork right now. Not many updates to this repo lately anyway. You can checkout the branch: https://github.com/ldelossa/claudecode.nvim/tree/provider-none-empty-buffer-fix -- spam buffers are gone, working well.
@Davydhh and anyone else interested. I just created: https://github.com/ldelossa/pi-ide.nvim
Originally created for the Pi LLVM harness, its 100% compatible with claude code's IDE's integration, but focuses ONLY on the use case where claude code is ran outside of Neovim. This is the correct ergonomics IMO. I'll be maintaining this plugin as long as I use it across Pi and claude code.
@ldelossa That sounds interesting—I'll give it a try. Thanks.