can I create my Tooltip in codemirror?

I make my own language using codemirror , what I want to do when I stop on name of function and hover on it or press on (ctrl_i) to show tooltip display the type and other data for this function , I try to create “tooltip” on codemirror But I can’t , so any body help me … how to create my own tooltip in codemirror ??

You could take the tooltip in the tern addon as inspiration.