-
-
Couldn't load subscription status.
- Fork 151
Description
It seems this bug has resurfaced because I'm on the latest commit and this is occurring to me.
I'm on commit 1e06be97df058fa0bb4af54659c39918a4999c86
return {
{
"CopilotC-Nvim/CopilotChat.nvim",
dependencies = {
{ "nvim-lua/plenary.nvim", branch = "master" },
},
enabled = "true",
build = "make tiktoken",
config = function(_, opts)
require("CopilotChat").setup(opts)
end,
opts = {
model = "claude-3.5-sonnet", -- AI model to use
temperature = 0.1, -- Lower = focused, higher = creative
prompts = {
Fix = {
prompt = "#diagnostics:current #buffer why am I getting this/these error(s)?",
system_prompt = "You are very good at explaining stuff",
mapping = "<leader>cpf",
description = "Fix the issue in the current buffer while taking into account the diagnostics.",
},
WithListedFix = {
prompt = "#diagnostics:current #buffers:listed why am I getting this/these error(s)?",
system_prompt = "You are very good at explaining stuff",
mapping = "<leader>cpw",
description = "Fix the issue in the current buffer while taking into account the diagnostics as well as all listed buffers.",
},
},
window = {
width = 0.5, -- 50% of screen width
layout = "vertical",
height = 20, -- Fixed height in rows
border = "rounded", -- 'single', 'double', 'rounded', 'solid'
title = "🤖 AI Assistant",
zindex = 100, -- Ensure window stays on top
},
headers = {
user = "👤 You",
assistant = "🤖 Copilot",
tool = "🔧 Tool",
},
separator = "━━",
auto_fold = true, -- Automatically folds non-assistant messages
auto_insert_mode = true, -- Enter insert mode when opening
},
keys = {
{
"<leader>a",
mode = { "n", "x", "o" },
function()
local chat = require("CopilotChat")
chat.toggle({ window = { layout = "float" } })
end,
desc = "Toggle Copilot Float",
},
{
"<leader>av",
mode = { "n", "x", "o" },
function()
local chat = require("CopilotChat")
chat.toggle({ window = { layout = "vertical" } })
end,
desc = "Toggle Copilot Vertical",
},
{
"<leader>ah",
mode = { "n", "x", "o" },
function()
local chat = require("CopilotChat")
chat.toggle({ window = { layout = "horizontal" } })
end,
desc = "Toggle Copilot Horizontal",
},
},
},
}
And my mcp.lua
return {
"ravitemer/mcphub.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
},
build = "/usr/bin/npm install -g mcp-hub@latest", -- Installs `mcp-hub` node binary globally
config = function()
require("mcphub").setup({
extensions = {
copilotchat = {
enabled = true,
convert_tools_to_functions = true, -- Convert MCP tools to CopilotChat functions
convert_resources_to_functions = true, -- Convert MCP resources to CopilotChat functions
add_mcp_prefix = false, -- Add "mcp_" prefix to function names
},
},
global_env = {
GITHUB_PERSONAL_ACCESS_TOKEN = os.getenv("GITHUB_PERSONAL_ACCESS_TOKEN"), -- Set your GitHub token in your environment variables for better LLM access
}
})
end,
}
[dan@ryzen ~]$ nvim -v
NVIM v0.11.4
Build type: RelWithDebInfo
LuaJIT 2.1.1753364724
https://github.com/xeon826/neovim-config
I press enter while in normal mode, that's the correct way to accept, am I right? Maybe the bug has resurfaced? I've also tried providing the tools to it again but no matter what, it skips it even though I press Enter.
Completely aside but I'm not actually sure how to deny/skip the tool call.
Edit: This happens when using the @filesystem group of tools, I haven't tested it with others.