Skip to content

MCPHub slash commands and resources not working with LazyVim #1474

Answered by ShooTeX
ShooTeX asked this question in Q&A
Discussion options

You must be logged in to vote

I figured it out 🤦 ,

I added lazy = false to both mcphub and code companion:

return {
  "olimorris/codecompanion.nvim",
  lazy = false,
  dependencies = {
    "nvim-lua/plenary.nvim",
    "nvim-treesitter/nvim-treesitter",
    "ravitemer/mcphub.nvim",
  },
  opts = {
    extensions = {
      mcphub = {
        callback = "mcphub.extensions.codecompanion",
        opts = {
          make_vars = true,
          make_slash_commands = true,
          show_result_in_chat = true,
        },
      },
    },
  },
  keys = {
    { "<leader>a", "", desc = "+ai", mode = { "n", "v" } },
    {
      "<leader>aa",
      function()
        vim.cmd("CodeCompanionChat Toggle")
      end,
      desc = "Tog…

Replies: 2 comments 20 replies

Comment options

You must be logged in to vote
7 replies
@ShooTeX
Comment options

@ravitemer
Comment options

@ravitemer
Comment options

@ShooTeX
Comment options

@ravitemer
Comment options

Comment options

You must be logged in to vote
13 replies
@ravitemer
Comment options

@ShooTeX
Comment options

@ravitemer
Comment options

@ShooTeX
Comment options

Answer selected by ShooTeX
@ravitemer
Comment options

@ShooTeX
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants