Skip to content

Commit

Permalink
Detect repl type for completion and eldoc ops based on the current bu…
Browse files Browse the repository at this point in the history
…ffer
  • Loading branch information
ak-coram authored and bbatsov committed Jan 14, 2019
1 parent cc2510c commit c2bbfb1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cider-client.el
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,8 @@ CONTEXT represents a completion context for compliment."
"ns" ,(cider-current-ns)
"symbol" ,str
"context" ,context)
(cider-nrepl-send-sync-request nil 'abort-on-input))))
(cider-nrepl-send-sync-request (cider-current-repl)
'abort-on-input))))
(nrepl-dict-get dict "completions")))

(defun cider-sync-request:complete-flush-caches ()
Expand Down Expand Up @@ -486,7 +487,8 @@ CONTEXT represents a completion context for compliment."
,@(when symbol `("symbol" ,symbol))
,@(when class `("class" ,class))
,@(when member `("member" ,member)))
(cider-nrepl-send-sync-request nil 'abort-on-input))))
(cider-nrepl-send-sync-request (cider-current-repl)
'abort-on-input))))
(if (member "no-eldoc" (nrepl-dict-get eldoc "status"))
nil
eldoc)))
Expand Down

0 comments on commit c2bbfb1

Please sign in to comment.