            [org.fife.ui.rsyntaxtextarea FileLocation TextEditorPane Theme]
            [org.fife.ui.rtextarea RTextScrollPane SearchContext SearchEngine
             SearchResult]
-           [com.oakmac.parinfer Parinfer]))
+           [com.oakmac.parinfer Parinfer ParinferResult]))
 
 (def ^:const min-font-size 8)
 (def editors (atom (flatland/ordered-map)))

                 (indent-mode old-text old-x old-line))
        new-text (:text result)
        new-x (:x result)
        new-pos (+ old-pos (- new-x old-x))]
    (.setText text-area new-text)
    (.setCaretPosition text-area new-pos)))

(defn init-parinfer!
  [text-area extension]
  (when (contains? utils/clojure-exts extension)
    ; use paren mode to preprocess the code
    (let [old-text (.getText text-area)]

(ns nightcode.editors
  (:require [clojure.java.io :as io]
            [clojure.string :refer [join split]]
            [flatland.ordered.map :as flatland]
            [nightcode.completions :as completions]
            [nightcode.dialogs :as dialogs]
