 (ns nightcode.editors
   (:require [clojure.java.io :as io]
+            [clojure.zip :as zip]
             [compliment.core :as compliment]
             [flatland.ordered.map :as flatland]
             [nightcode.lein :as lein]
             [nightcode.shortcuts :as shortcuts]
             [nightcode.ui :as ui]
             [nightcode.utils :as utils]
-            [paredit-widget.core :as paredit]
+            [paredit.loc-utils :as loc-utils]
+            [paredit.parser :as parser]
+            [paredit-widget.core :as pw]
             [seesaw.color :as color]
             [seesaw.core :as s])
   (:import [com.camick TextPrompt]

    (setMarginLinePosition [size]
      (proxy-super setMarginLinePosition size))))

(defn get-completion-provider
  [extension]
  (cond

    (proxy [DefaultCompletionProvider] []
      (getCompletions [comp]
        (if-let [prefix (.getAlreadyEnteredText this comp)]
          (for [symbol-str (compliment/completions prefix (get-context prefix))]
            (->> (compliment/documentation symbol-str)
                 (BasicCompletion. this symbol-str nil)))
          '()))
