From fc5725b99ceb75d6967a8ae3df1ddfd0b3883df4 Mon Sep 17 00:00:00 2001 From: serxoz Date: Sun, 7 Apr 2024 13:15:41 +0200 Subject: [PATCH 1/2] cambio de copilot a codeium --- nvim/after/plugin/copilot.lua | 8 ++++---- nvim/after/plugin/copilotchat.lua | 12 ++++++------ nvim/after/plugin/lsp.lua | 6 ++++-- nvim/lua/serxoz/packer.lua | 25 +++++++++++++++++++------ 4 files changed, 33 insertions(+), 18 deletions(-) diff --git a/nvim/after/plugin/copilot.lua b/nvim/after/plugin/copilot.lua index 679f73b..f24714e 100644 --- a/nvim/after/plugin/copilot.lua +++ b/nvim/after/plugin/copilot.lua @@ -1,4 +1,4 @@ -require('copilot').setup({ - suggestion = { enabled = false }, - panel = { enabled = false }, -}) +-- require('copilot').setup({ +-- suggestion = { enabled = false }, +-- panel = { enabled = false }, +-- }) diff --git a/nvim/after/plugin/copilotchat.lua b/nvim/after/plugin/copilotchat.lua index 56082b3..e93d2d0 100644 --- a/nvim/after/plugin/copilotchat.lua +++ b/nvim/after/plugin/copilotchat.lua @@ -1,6 +1,6 @@ -require("CopilotChat").setup{ - show_help = "yes", - debug = false, - disable_extra_info = 'no', - language = "Spanish" -} +-- require("CopilotChat").setup{ +-- show_help = "yes", +-- debug = false, +-- disable_extra_info = 'no', +-- language = "Spanish" +-- } diff --git a/nvim/after/plugin/lsp.lua b/nvim/after/plugin/lsp.lua index e061d63..6c5cb44 100644 --- a/nvim/after/plugin/lsp.lua +++ b/nvim/after/plugin/lsp.lua @@ -54,8 +54,9 @@ cmp_mappings[''] = nil lsp.setup_nvim_cmp({ mapping = cmp_mappings, sources = { - -- Copilot sources - { name = 'copilot' }, + -- AI sources + -- { name = 'copilot' }, + { name = 'codeium' }, -- Other sources { name = 'nvim_lsp' }, { name = 'buffer' }, @@ -64,6 +65,7 @@ lsp.setup_nvim_cmp({ { name = 'emoji' }, { name = 'treesitter' }, { name = 'vsnip' }, + { name = 'luasnip' }, } }) diff --git a/nvim/lua/serxoz/packer.lua b/nvim/lua/serxoz/packer.lua index 9dc4877..3012bbe 100644 --- a/nvim/lua/serxoz/packer.lua +++ b/nvim/lua/serxoz/packer.lua @@ -60,15 +60,28 @@ return require('packer').startup(function(use) } use("folke/zen-mode.nvim") - use("zbirenbaum/copilot.lua") + -- use("zbirenbaum/copilot.lua") + -- use { + -- "zbirenbaum/copilot-cmp", + -- after = { "copilot.lua" }, + -- config = function () + -- require("copilot_cmp").setup() + -- end + -- } + -- use("CopilotC-Nvim/CopilotChat.nvim") + -- use { - "zbirenbaum/copilot-cmp", - after = { "copilot.lua" }, - config = function () - require("copilot_cmp").setup() + "Exafunction/codeium.nvim", + requires = { + "nvim-lua/plenary.nvim", + "hrsh7th/nvim-cmp", + }, + config = function() + require("codeium").setup({ + }) end } - use("CopilotC-Nvim/CopilotChat.nvim") + -- use("eandrju/cellular-automaton.nvim") -- use("laytan/cloak.nvim") use("terrortylor/nvim-comment") -- 2.45.2 From a9ea37a83c748dd3d9d5c2f1fd84979f98ab037a Mon Sep 17 00:00:00 2001 From: serxoz Date: Wed, 17 Apr 2024 16:43:34 +0200 Subject: [PATCH 2/2] enable codeium chat --- nvim/lua/serxoz/packer.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/nvim/lua/serxoz/packer.lua b/nvim/lua/serxoz/packer.lua index 3012bbe..2e031b8 100644 --- a/nvim/lua/serxoz/packer.lua +++ b/nvim/lua/serxoz/packer.lua @@ -78,6 +78,7 @@ return require('packer').startup(function(use) }, config = function() require("codeium").setup({ + enable_chat = true, }) end } -- 2.45.2