Skip to content
Discussion options

You must be logged in to vote

Hi, is your opts table wrapped in a function like this? If not, this will make the require('vectorcode.integrations') being loaded before vectorcode is loaded.

BTW codecompanion released a new extension API which makes this a lot easier. I'm working on migrating to this (the current approach will still work, but with the extension API it'll be easier to set up tools/slash commands).

EDIT:
The codecompanion extension is live! Now you can simply do this:

opts = {
  extensions = {
    vectorcode = {
      opts = { add_tool = true, add_slash_command = true, tool_opts = {} },
    },
  }
}

And you're good to go! no more manual configuring of the tool and/or slash command!

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@Davidyz
Comment options

@bbli
Comment options

@bbli
Comment options

@Davidyz
Comment options

@Davidyz
Comment options

Answer selected by Davidyz
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
Converted from issue

This discussion was converted from issue #101 on April 30, 2025 01:33.