Skip to content

Commit a9a2193

Browse files
committed
configure copilot with completions inside work proxy
1 parent 0a09de4 commit a9a2193

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

init.lua

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ require('lazy').setup({
734734
{ name = 'nvim_lsp' },
735735
{ name = 'luasnip' },
736736
{ name = 'path' },
737+
{ name = 'copilot', group_index = 2 },
737738
},
738739
}
739740
end,
@@ -798,6 +799,24 @@ require('lazy').setup({
798799
-- Check out: https://github.com/echasnovski/mini.nvim
799800
end,
800801
},
802+
{
803+
'zbirenbaum/copilot.lua',
804+
dependencies = {
805+
'zbirenbaum/copilot-cmp',
806+
config = function()
807+
require('copilot_cmp').setup()
808+
end,
809+
},
810+
cmd = 'Copilot',
811+
event = 'InsertEnter',
812+
config = function()
813+
vim.g.copilot_proxy = 'http://proxyldn.rivagecapital.com:8080'
814+
require('copilot').setup {
815+
suggestion = { enabled = false },
816+
panel = { enabled = false },
817+
}
818+
end,
819+
},
801820
{ -- Highlight, edit, and navigate code
802821
'nvim-treesitter/nvim-treesitter',
803822
build = ':TSUpdate',

0 commit comments

Comments
 (0)