Skip to content

Commit 93f46f7

Browse files
committed
feat(copilot-chat): update to v4 and add mcphub.nvim integration
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
1 parent 8930cf0 commit 93f46f7

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

lua/astrocommunity/editing-support/copilotchat-nvim/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@
33
Chat with GitHub Copilot in Neovim
44

55
**Repository:** <https://github.com/CopilotC-Nvim/CopilotChat.nvim>
6-
7-
Note: This will need to have Copilot setup, this uses the same auth as `zbirenbaum/copilot.lua` with `:Copilot setup`

lua/astrocommunity/editing-support/copilotchat-nvim/init.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---@type LazySpec
22
return {
33
"CopilotC-Nvim/CopilotChat.nvim",
4-
version = "^3",
4+
version = "^4",
55
cmd = {
66
"CopilotChat",
77
"CopilotChatOpen",
@@ -11,19 +11,16 @@ return {
1111
"CopilotChatReset",
1212
"CopilotChatSave",
1313
"CopilotChatLoad",
14-
"CopilotChatDebugInfo",
1514
"CopilotChatModels",
16-
"CopilotChatAgents",
1715
"CopilotChatExplain",
1816
"CopilotChatReview",
1917
"CopilotChatFix",
2018
"CopilotChatOptimize",
2119
"CopilotChatDocs",
22-
"CopilotChatFixTests",
20+
"CopilotChatTests",
2321
"CopilotChatCommit",
2422
},
2523
dependencies = {
26-
{ "zbirenbaum/copilot.lua" },
2724
{ "nvim-lua/plenary.nvim" },
2825
{
2926
"AstroNvim/astrocore",

lua/astrocommunity/editing-support/mcphub-nvim/init.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,18 @@ return {
4040
},
4141
},
4242
},
43+
{
44+
"CopilotC-Nvim/CopilotChat.nvim",
45+
optional = true,
46+
opts = {
47+
extensions = {
48+
copilotchat = {
49+
enabled = true,
50+
convert_tools_to_functions = true,
51+
convert_resources_to_functions = true,
52+
add_mcp_prefix = false,
53+
},
54+
}
55+
}
56+
}
4357
}

0 commit comments

Comments
 (0)