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

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

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

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