diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index 2c2f1d5..77572e0 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -30,34 +30,6 @@ return { 'hrsh7th/cmp-nvim-lsp', 'L3MON4D3/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', 'cd', ':Copilot disable', { desc = '[C]opilot [d]isable' }) - vim.keymap.set('n', 'ce', ':Copilot enable', { desc = '[C]opilot [e]nable' }) - end, - }, }, config = function() -- nvim-cmp setup @@ -102,7 +74,6 @@ return { sources = { { name = 'nvim_lsp' }, { name = 'luasnip' }, - { name = 'copilot' }, { name = 'crates' }, }, window = {