cmp: remove copilot

This commit is contained in:
Matej Janezic 2023-05-19 19:48:39 +02:00
parent 85fcc33ba6
commit e8fcff3526
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 0 additions and 29 deletions

View File

@ -30,34 +30,6 @@ return {
'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-nvim-lsp',
'L3MON4D3/LuaSnip', 'L3MON4D3/LuaSnip',
'saadparwaiz1/cmp_luasnip', 'saadparwaiz1/cmp_luasnip',
{
-- copilot
'zbirenbaum/copilot.lua',
opts = {
suggestion = { enabled = false },
panel = { enabled = false },
filetypes = {
sh = function()
if string.match(vim.fs.basename(vim.api.nvim_buf_get_name(0)), '^%.env.*') then
return false
end
return true
end,
},
},
},
{
-- copilot-cmp source
'zbirenbaum/copilot-cmp',
config = function()
require('copilot_cmp').setup { clear_after_cursor = true }
vim.keymap.set('n', '<leader>cd', ':Copilot disable<CR>', { desc = '[C]opilot [d]isable' })
vim.keymap.set('n', '<leader>ce', ':Copilot enable<CR>', { desc = '[C]opilot [e]nable' })
end,
},
}, },
config = function() config = function()
-- nvim-cmp setup -- nvim-cmp setup
@ -102,7 +74,6 @@ return {
sources = { sources = {
{ name = 'nvim_lsp' }, { name = 'nvim_lsp' },
{ name = 'luasnip' }, { name = 'luasnip' },
{ name = 'copilot' },
{ name = 'crates' }, { name = 'crates' },
}, },
window = { window = {