Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect the repl type in cider-sync-request:info based on the current buffer #2560

Merged
merged 2 commits into from
Jan 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 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 All @@ -474,7 +475,7 @@ CONTEXT represents a completion context for compliment."
,@(when symbol `("symbol" ,symbol))
,@(when class `("class" ,class))
,@(when member `("member" ,member)))
(cider-nrepl-send-sync-request))))
(cider-nrepl-send-sync-request (cider-current-repl)))))
(if (member "no-info" (nrepl-dict-get var-info "status"))
nil
var-info)))
Expand All @@ -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