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({
suggestion = { enabled = false },
panel = { enabled = false },
})
-- require('copilot').setup({
-- suggestion = { enabled = false },
-- panel = { enabled = false },
-- })

View File

@ -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"
-- }

View File

@ -54,8 +54,9 @@ cmp_mappings['<S-Tab>'] = 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' },
}
})

View File

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