rust cpp is a lost cause also try zig, very nice lang from what it seems
if you use neovim use this plugin https://github.com/yacineMTB/dingllm.nvim simple to setup, you have options for opening a new buf and using that as the chat window, or you can select some text and the prompt and it will inline-replace