Error setting up VectorCode integrations #61
-
|
I'm trying to setup VectorCode in nvim to use the integration with CodeCompanion and I'm seeing an error that I don't really understand Does this mean I didn't properly install vectorcode? |
Beta Was this translation helpful? Give feedback.
Answered by
Davidyz
Apr 3, 2025
Replies: 1 comment 4 replies
-
|
Hi, I think you're lazy-loading vectorcode, and when codecompanion is loaded without vectorcode being ready. Please refer to lazy.nvim documentation to either stop lazy loading vectorcode or mark vectorcode as a dependency of codecompanion (I recommend the later approach). |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah you need to wrap the whole
optstable for codecompanion into a function that returns your opts table, so that the loading is delayed to when it's needed. Your current code loads the module at the very beginning, which defeats the purpose of lazy loading.