-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugins): setup codeium and copilot AI integrations
- Loading branch information
Showing
4 changed files
with
72 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
return { | ||
{ | ||
"jcdickinson/codeium.nvim", | ||
cond = EcoVim.plugins.ai.codeium.enabled, | ||
event = "InsertEnter", | ||
cmd = "Codeium", | ||
dependencies = { | ||
"nvim-lua/plenary.nvim", | ||
"hrsh7th/nvim-cmp", | ||
}, | ||
config = true, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
return { | ||
{ | ||
"CopilotC-Nvim/CopilotChat.nvim", | ||
event = "VeryLazy", | ||
opts = { | ||
show_help = "no", | ||
prompts = { | ||
Explain = "Explain how it works.", | ||
Review = "Review the following code and provide concise suggestions.", | ||
Tests = "Briefly explain how the selected code works, then generate unit tests.", | ||
Refactor = "Refactor the code to improve clarity and readability.", | ||
}, | ||
}, | ||
build = function() | ||
vim.defer_fn(function() | ||
vim.cmd("UpdateRemotePlugins") | ||
vim.notify("CopilotChat - Updated remote plugins. Please restart Neovim.") | ||
end, 3000) | ||
end, | ||
keys = { | ||
{ "<leader>ccb", ":CopilotChatBuffer<cr>", desc = "CopilotChat - Buffer" }, | ||
{ "<leader>cce", "<cmd>CopilotChatExplain<cr>", desc = "CopilotChat - Explain code" }, | ||
{ "<leader>cct", "<cmd>CopilotChatTests<cr>", desc = "CopilotChat - Generate tests" }, | ||
{ | ||
"<leader>ccT", | ||
"<cmd>CopilotChatVsplitToggle<cr>", | ||
desc = "CopilotChat - Toggle Vsplit", -- Toggle vertical split | ||
}, | ||
{ | ||
"<leader>ccv", | ||
":CopilotChatVisual", | ||
mode = "x", | ||
desc = "CopilotChat - Open in vertical split", | ||
}, | ||
{ | ||
"<leader>ccc", | ||
":CopilotChatInPlace<cr>", | ||
mode = { "n", "x" }, | ||
desc = "CopilotChat - Run in-place code", | ||
}, | ||
{ | ||
"<leader>ccf", | ||
"<cmd>CopilotChatFixDiagnostic<cr>", -- Get a fix for the diagnostic message under the cursor. | ||
desc = "CopilotChat - Fix diagnostic", | ||
}, | ||
} | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
return { | ||
{ | ||
"zbirenbaum/copilot.lua", | ||
cond = EcoVim.plugins.ai.copilot.enabled, | ||
lazy = false, | ||
opts = { | ||
suggestion = { enabled = false }, | ||
panel = { enabled = false }, | ||
} | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.