I am trying to show the info panel of the autocomplete list while hovering, Currently, the info panel only shows when selecting/navigating the options using the keyboard arrow keys.
import {CompletionContext} from "@codemirror/autocomplete"
function myCompletions(context: CompletionContext) {
let word = context.matchBefore(/\w*/)
if (word.from == word.to && !context.explicit)
return null
return {
from: word.from,
options: [
{label: "match", type: "keyword"},
{label: "hello", type: "variable", info: "(World)"},
{label: "magic", type: "text", apply: "⠁⭒*.✩.*⭒⠁", detail: "macro"}
]
}
}