From a9a219378a76bfcd60b47a4e2f36a1eb4fe47232 Mon Sep 17 00:00:00 2001 From: nik alexandrov Date: Fri, 4 Oct 2024 12:40:38 +0100 Subject: [PATCH] configure copilot with completions inside work proxy --- init.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/init.lua b/init.lua index dd17d3b2..7dfa71b7 100644 --- a/init.lua +++ b/init.lua @@ -734,6 +734,7 @@ require('lazy').setup({ { name = 'nvim_lsp' }, { name = 'luasnip' }, { name = 'path' }, + { name = 'copilot', group_index = 2 }, }, } end, @@ -798,6 +799,24 @@ require('lazy').setup({ -- Check out: https://github.com/echasnovski/mini.nvim end, }, + { + 'zbirenbaum/copilot.lua', + dependencies = { + 'zbirenbaum/copilot-cmp', + config = function() + require('copilot_cmp').setup() + end, + }, + cmd = 'Copilot', + event = 'InsertEnter', + config = function() + vim.g.copilot_proxy = 'http://proxyldn.rivagecapital.com:8080' + require('copilot').setup { + suggestion = { enabled = false }, + panel = { enabled = false }, + } + end, + }, { -- Highlight, edit, and navigate code 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate',