Create custom autocomplete

I have a language that I wrote specifically for my systems.
I would like to add auto-completion to it within the CodeMirror code editor.

How can I do this?

(I am using Vue)

There’s an example specifically about this.

How do I implement this in Vue?