Skip to content

Commit 67cb352

Browse files
committed
Separate the injected cider-nrepl version from the required version
This makes it possible for users to specify which version of cider-nrepl to inject in their configs.
1 parent 101a514 commit 67cb352

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* [#2831](https://github.com/clojure-emacs/cider/issues/2831): Add xref integration, configured with customizable variables cider-use-xref and cider-xref-fn-depth.
88
* [#3017](https://github.com/clojure-emacs/cider/issues/3017): Annotate company completion kinds.
99
* [#3040](https://github.com/clojure-emacs/cider/pull/3040): Support invoking `cider-clojuredocs` within the `*clojuredocs*` buffer.
10+
* Make it possible to specify the version of `cider-nrepl` to use with `cider-jack-in`. See `cider-injected-middleware-version`.
1011

1112
### Bugs fixed
1213

cider.el

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,14 @@ Elements of the list are artifact name and list of exclusions to apply for the a
409409
(defconst cider-required-middleware-version "0.26.0"
410410
"The CIDER nREPL version that's known to work properly with CIDER.")
411411

412+
(defcustom cider-injected-middleware-version cider-required-middleware-version
413+
"The version of cider-nrepl injected on jack-in.
414+
Should be newer than the required version for optimal results."
415+
:type 'string
416+
:group 'cider
417+
:package-version '(cider . "1.2.0")
418+
:safe #'stringp)
419+
412420
(defcustom cider-jack-in-auto-inject-clojure nil
413421
"Version of clojure to auto-inject into REPL.
414422
If nil, do not inject Clojure into the REPL. If `latest', inject
@@ -436,7 +444,7 @@ that extend CIDER, not for users. For example, a refactoring package might
436444
want to inject some middleware only when within a project context.)")
437445
(put 'cider-jack-in-lein-plugins 'risky-local-variable t)
438446
(cider-add-to-alist 'cider-jack-in-lein-plugins
439-
"cider/cider-nrepl" cider-required-middleware-version)
447+
"cider/cider-nrepl" cider-injected-middleware-version)
440448

441449
(defvar cider-jack-in-cljs-lein-plugins nil
442450
"List of Leiningen plugins to be injected at jack-in.

0 commit comments

Comments
 (0)