Skip to content

Commit 6d61a14

Browse files
committed
Fix plugin
1 parent f770257 commit 6d61a14

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

src/cider_nrepl/plugin.clj

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,33 @@
4949
[['cider/cider-nrepl version-string]])
5050
(update-in [:repl-options :nrepl-middleware]
5151
(fnil into [])
52-
(do (require 'cider.nrepl)
53-
@(resolve 'cider.nrepl/cider-middleware)))))))
52+
;; TODO: it would be better to avoid this duplication, but
53+
;; we can't require the `cider.nrepl` namespace because it
54+
;; requires `nrepl.*` namespaces which might conflict with
55+
;; Leiningen. Consider adding another namespace that
56+
;; contains the below definition (as data only, not
57+
;; requiring `cider.nrepl`).
58+
'[cider.nrepl/wrap-apropos
59+
cider.nrepl/wrap-classpath
60+
cider.nrepl/wrap-complete
61+
cider.nrepl/wrap-debug
62+
cider.nrepl/wrap-enlighten
63+
cider.nrepl/wrap-format
64+
cider.nrepl/wrap-info
65+
cider.nrepl/wrap-inspect
66+
cider.nrepl/wrap-macroexpand
67+
cider.nrepl/wrap-slurp
68+
cider.nrepl/wrap-ns
69+
cider.nrepl/wrap-out
70+
cider.nrepl/wrap-content-type
71+
cider.nrepl/wrap-slurp
72+
cider.nrepl/wrap-profile
73+
cider.nrepl/wrap-refresh
74+
cider.nrepl/wrap-resource
75+
cider.nrepl/wrap-spec
76+
cider.nrepl/wrap-stacktrace
77+
cider.nrepl/wrap-test
78+
cider.nrepl/wrap-trace
79+
cider.nrepl/wrap-tracker
80+
cider.nrepl/wrap-undef
81+
cider.nrepl/wrap-version])))))

0 commit comments

Comments
 (0)