scniro / react-codemirror2

Codemirror integrated components for React
MIT License
1.65k stars 192 forks source link

How to add custom autocompletion? #274

Open NeroSolomon opened 2 years ago

NeroSolomon commented 2 years ago

Hi, could you help me solve this problem?

In codemirror doc, I find that codemirror can use custom completion sources: https://codemirror.net/6/examples/autocompletion/

image

But I don't know how to config in react-codemirror2

Looking forward to your reply, thx