vim.schedule callback: ...mcphub.nvim/lua/mcphub/extensions/codecompanion/variables.lua:20: bad argument #1 to pairs (table expected, got nil)
MCP tools and slash commands remain enabled. Only MCP resources as CodeCompanion # editor context are disabled.
Context
Neovim startup hit this error after CodeCompanion moved to v19:
Cause: CodeCompanion v19 renamed chat
variablestoeditor_context, while currentmcphub.nvimstill readsconfig.interactions.chat.variablesin its CodeCompanion extension.Upstream tracking:
pairs()invariables.luaravitemer/mcphub.nvim#275: Crash on startup with codecompanion v19config.interactions.chat.variablesis nilLocal workaround
Committed on branch
nvim-0.12-compat:fix(nvim): disable mcphub vars for codecompanion v19This sets:
in
dot_config/nvim/lua/plugins/codecompanion.lua.MCP tools and slash commands remain enabled. Only MCP resources as CodeCompanion
#editor context are disabled.Done when
make_vars = truecan be restored without the startup Lua error