Skip to content

Commit 74e8423

Browse files
hlollibbatsov
authored andcommitted
Fix get-completions for lumo (#81)
1 parent 9ba23b0 commit 74e8423

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

inf-clojure.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,10 @@ If you are using REPL types, it will pickup the most approapriate
726726
(define-obsolete-variable-alias 'inf-clojure-completion-command 'inf-clojure-completion-form "2.0.0")
727727

728728
(defcustom inf-clojure-completion-form-lumo
729-
"(doall (map str (lumo.repl/get-completions \"%s\")))"
729+
"(let [ret (atom)]
730+
(lumo.repl/get-completions \"%s\"
731+
(fn [res] (reset! ret (map str res))))
732+
@ret)"
730733
"Lumo form to query inferior Clojure for completion candidates."
731734
:type 'string
732735
:package-version '(inf-clojure . "2.0.0"))

0 commit comments

Comments
 (0)