Commits

Meikel Brandmeyer committed d941b93

Adapt SourceLookup to new interface

Comments (0)

Files changed (2)

autoload/vimclojure.vim

 function! vimclojure#SourceLookup(word)
 	let source = vimclojure#ExecuteNailWithInput("SourceLookup", a:word,
 				\ "-n", b:vimclojure_namespace)
-	let resultBuffer = g:vimclojure#ClojureResultBuffer.New()
-	call resultBuffer.showText(source)
+	let buf = g:vimclojure#ClojureResultBuffer.New()
+	call buf.showOutput(source)
 	wincmd p
 endfunction
 

src/main/clojure/vimclojure/nails.clj

   [[nspace n "Lookup the symbols in the given namespace." "user"]]
   (let [nspace         (util/resolve-and-load-namespace nspace)
         our-ns-resolve #(ns-resolve nspace %)]
-    (doseq [src (map #(-> %
-                        symbol
-                        our-ns-resolve
-                        backend/get-source)
-                     (util/stream->seq *in*))]
-      (println src))))
+    (-> (read)
+      our-ns-resolve
+      backend/get-source
+      println)))
 
 (defnail MetaLookup
   "Usage: ng vimclojure.nails.MetaLookup [options]"