configure copilot with completions inside work proxy

This commit is contained in:
nik alexandrov 2024-10-04 12:40:38 +01:00
parent 0a09de4981
commit a9a219378a
1 changed files with 19 additions and 0 deletions

View File

@ -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',