Skip to content

Commit

Permalink
feat(ai): add codeium AI plugin & configure copilot
Browse files Browse the repository at this point in the history
  • Loading branch information
ecosse3 committed Apr 4, 2023
1 parent b172d8b commit df0bf24
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
3 changes: 3 additions & 0 deletions lua/config/EcoVim.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ EcoVim = {
chatgpt = {
enabled = false,
},
codeium = {
enabled = true,
},
},
completion = {
select_first_on_enter = false,
Expand Down
16 changes: 14 additions & 2 deletions lua/config/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,23 @@ return {

-- AI
{
"zbirenbaum/copilot.lua",
disable = not EcoVim.plugins.copilot.enabled,
"jcdickinson/codeium.nvim",
cond = EcoVim.plugins.ai.codeium.enabled,
event = "InsertEnter",
cmd = "Codeium",
dependencies = {
"nvim-lua/plenary.nvim",
"hrsh7th/nvim-cmp",
},
config = true,
},
{
"zbirenbaum/copilot.lua",
event = "InsertEnter",
config = function()
require("plugins.copilot")
end,
},
{
"jackMort/ChatGPT.nvim",
cond = EcoVim.plugins.ai.chatgpt.enabled,
Expand Down
4 changes: 4 additions & 0 deletions lua/plugins/copilot.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require("copilot").setup({
suggestion = { enabled = false },
panel = { enabled = false },
})
1 change: 1 addition & 0 deletions lua/utils/icons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ local icons = {
check = "",
checkSquare = "",
copilot = "",
codeium = "",
exit = "",
chevronRight = "",
circle = "",
Expand Down

0 comments on commit df0bf24

Please sign in to comment.