need help about highly customized codemirror/autocomplete

I am implementing a formula editor and need to have automatic completion, so I chose codeMirror. But I want to highly customize the style of autocomplete and bind some events to achieve the effect of cascading components, as shown in the following picture. Can I do this with “@codemirror/autocomplete”

Snipaste_2022-10-20_20-18-24

Probably not. @codemirror/autocomplete is rather specialized for classical code editor completion style. It looks like you’re trying to do something hierarchical there, which it definitely doesn’t support.

Thanks for the reply, by the way, do other core packages of codeMirror offer similar capabilities?

The tooltip feature in @codemirror/view can be useful when implementing something like this. There’s no other completion functionality available.

Thank you very much for your answer