codeium.vim icon indicating copy to clipboard operation
codeium.vim copied to clipboard

Proxy Support

Open rainzm opened this issue 2 years ago • 4 comments

Can you add a option to configure the network proxy just like 'g:copilot_proxy' in copliot.vim?

rainzm avatar Jul 24 '23 02:07 rainzm

We support the standard environmental variables HTTPS_PROXY/HTTP_PROXY/NO_PROXY right now. Does that work for your proxy configuration?

pqn avatar Jul 25 '23 00:07 pqn

It does work. But if I don't want to set this by default, do I have to add these two environment variables to the front every time I start nvim? Is there a way to set it only for codeium.vim?

rainzm avatar Jul 25 '23 03:07 rainzm

Feel free to open a PR to set these environmental variables just for the server process based on an option.

You can find the documentation for Neovim jobstart here: https://neovim.io/doc/user/builtin.html#jobstart()

And for Vim job_start here: https://vimhelp.org/channel.txt.html#job-start

pqn avatar Jul 25 '23 19:07 pqn

I can also take a stab but won't be able to get to this for quite some time unfortunately.

pqn avatar Jul 25 '23 19:07 pqn