Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy support #285

Open
m8dotpie opened this issue May 8, 2024 · 1 comment
Open

Proxy support #285

m8dotpie opened this issue May 8, 2024 · 1 comment

Comments

@m8dotpie
Copy link

m8dotpie commented May 8, 2024

Can't find in documentation the parameters regarding the traffic forwarding through the specified proxy server. Is it possible in current implementation?

@biozz
Copy link

biozz commented May 14, 2024

It re-uses the variable from copilot.vim.

local proxy_uri = vim.g.copilot_proxy

Here is an example config:

{
	"zbirenbaum/copilot.lua",
	cmd = "Copilot",
	event = "InsertEnter",
	config = function()
		vim.g.copilot_proxy = "http://127.0.0.1:3128"
		require("copilot").setup({})
	end,
},

Note: you have to put protocol, i.e. http into the variable. It will not work if you put 127.0.0.1:3128.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants