           ; get the functions for toggling paredit and performing completion
           is-clojure? (contains? clojure-exts extension)
           toggle-paredit-fn (when is-clojure?
-                              (paredit/get-toggle-fn text-area))
+                              (pw/get-toggle-fn text-area))
           completer (get-completer text-area extension)
           do-completion-fn (fn [_]
                              (s/request-focus! text-area)

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

(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.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]
