Merge pull request 'codeium' (#1) from codeium into master

Reviewed-on: #1
This commit is contained in:
serxoz 2024-04-17 16:44:34 +02:00
commit 1524521e51
4 changed files with 34 additions and 18 deletions

View File

@ -1,4 +1,4 @@
require('copilot').setup({ -- require('copilot').setup({
suggestion = { enabled = false }, -- suggestion = { enabled = false },
panel = { enabled = false }, -- panel = { enabled = false },
}) -- })

View File

@ -1,6 +1,6 @@
require("CopilotChat").setup{ -- require("CopilotChat").setup{
show_help = "yes", -- show_help = "yes",
debug = false, -- debug = false,
disable_extra_info = 'no', -- disable_extra_info = 'no',
language = "Spanish" -- language = "Spanish"
} -- }

View File

@ -54,8 +54,9 @@ cmp_mappings['<S-Tab>'] = nil
lsp.setup_nvim_cmp({ lsp.setup_nvim_cmp({
mapping = cmp_mappings, mapping = cmp_mappings,
sources = { sources = {
-- Copilot sources -- AI sources
{ name = 'copilot' }, -- { name = 'copilot' },
{ name = 'codeium' },
-- Other sources -- Other sources
{ name = 'nvim_lsp' }, { name = 'nvim_lsp' },
{ name = 'buffer' }, { name = 'buffer' },
@ -64,6 +65,7 @@ lsp.setup_nvim_cmp({
{ name = 'emoji' }, { name = 'emoji' },
{ name = 'treesitter' }, { name = 'treesitter' },
{ name = 'vsnip' }, { name = 'vsnip' },
{ name = 'luasnip' },
} }
}) })

View File

@ -60,15 +60,29 @@ return require('packer').startup(function(use)
} }
use("folke/zen-mode.nvim") 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 { use {
"zbirenbaum/copilot-cmp", "Exafunction/codeium.nvim",
after = { "copilot.lua" }, requires = {
"nvim-lua/plenary.nvim",
"hrsh7th/nvim-cmp",
},
config = function() config = function()
require("copilot_cmp").setup() require("codeium").setup({
enable_chat = true,
})
end end
} }
use("CopilotC-Nvim/CopilotChat.nvim") --
use("eandrju/cellular-automaton.nvim") use("eandrju/cellular-automaton.nvim")
-- use("laytan/cloak.nvim") -- use("laytan/cloak.nvim")
use("terrortylor/nvim-comment") use("terrortylor/nvim-comment")