                     :getCompiledLine
                     (fn [ln-num]
                       (when-let [g (.-graph (.-knotation ed))]
-                        (first (filter #(= (inc ln-num) (->> % ::st/input ::st/line-number)) g))))}))
+                        (first (filter #(= (inc ln-num) (->> % ::st/input ::st/line-number)) g))))
+
+                    :completions completions}))
 
     (ln/assign-ix! ed)
 


(defn fromSelector
  [editor-selector options]
  (let [opts (merge {:mode "sparql" :theme "default"
                     :on-hover (.-onHover options)
                     :focus? (not (not (.-focus options)))}
                    (dissoc (js->clj options :keywordize-keys true) :focus))]
    (apply editor! editor-selector (mapcat identity opts))))

(defn linked-editors

            [org.knotation.editor.update :as update]

            [org.knotation.api :as api]
            [org.knotation.rdf :as rdf]
            [org.knotation.state :as st]

            [clojure.string :as string]))
