Skip to content

Commit c2bbfb1

Browse files
ak-corambbatsov
authored andcommitted
Detect repl type for completion and eldoc ops based on the current buffer
1 parent cc2510c commit c2bbfb1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cider-client.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,8 @@ CONTEXT represents a completion context for compliment."
458458
"ns" ,(cider-current-ns)
459459
"symbol" ,str
460460
"context" ,context)
461-
(cider-nrepl-send-sync-request nil 'abort-on-input))))
461+
(cider-nrepl-send-sync-request (cider-current-repl)
462+
'abort-on-input))))
462463
(nrepl-dict-get dict "completions")))
463464

464465
(defun cider-sync-request:complete-flush-caches ()
@@ -486,7 +487,8 @@ CONTEXT represents a completion context for compliment."
486487
,@(when symbol `("symbol" ,symbol))
487488
,@(when class `("class" ,class))
488489
,@(when member `("member" ,member)))
489-
(cider-nrepl-send-sync-request nil 'abort-on-input))))
490+
(cider-nrepl-send-sync-request (cider-current-repl)
491+
'abort-on-input))))
490492
(if (member "no-eldoc" (nrepl-dict-get eldoc "status"))
491493
nil
492494
eldoc)))

0 commit comments

Comments
 (0)