mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 12:31:04 +00:00
task: Add copilot
This commit is contained in:
parent
6a1c419aa4
commit
fa121c8727
1 changed files with 22 additions and 0 deletions
22
lua/plugins/copilotchat.lua
Normal file
22
lua/plugins/copilotchat.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
return {
|
||||
{
|
||||
"CopilotC-Nvim/CopilotChat.nvim",
|
||||
dependencies = {
|
||||
{ "github/copilot.vim" },
|
||||
{ "nvim-lua/plenary.nvim", branch = "master" },
|
||||
},
|
||||
build = "make tiktoken",
|
||||
opts = {},
|
||||
keys = {
|
||||
{ "<leader>zc", ":CopilotChat<CR>", mode = "n", desc = "Chat with Copilot" },
|
||||
{ "<leader>ze", ":CopilotChatExplain<CR>", mode = "v", desc = "Explain Code" },
|
||||
{ "<leader>zn", ":CopilotChatReview<CR>", mode = "v", desc = "Review Code" },
|
||||
{ "<leader>zf", ":CopilotChatFix<CR>", mode = "v", desc = "Fix Code Issues" },
|
||||
{ "<leader>zo", ":CopilotChatOptimize<CR>", mode = "v", desc = "Optimize Code" },
|
||||
{ "<leader>zd", ":CopilotChatDocs<CR>", mode = "v", desc = "Generate Docs" },
|
||||
{ "<leader>zt", ":CopilotChatTests<CR>", mode = "v", desc = "Generate Tests" },
|
||||
{ "<leader>zm", ":CopilotChatCommit<CR>", mode = "n", desc = "Generate Commit Message" },
|
||||
{ "<leader>zs", ":CopilotChatCommit<CR>", mode = "v", desc = "Generate Commit for Selection" },
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue