Xml/xsd autocompletion example and/or lua

Reading the post about codemirror 6 left me salivating… which send me in a rush to the examples section…

Can we have javascript examples of:

  1. setup the editor to edit xml, but using an xsd for autocompletion
  2. setup codemirror to use one of the oldies but goodies language that are still compatible, like Lua

Thank you.