Skip to content

Commit f7eef2e

Browse files
authored
Update suitable to 0.4.0 (#697)
1 parent a4c2ddf commit f7eef2e

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Distributed under the Eclipse Public License, the same as Clojure.
141141

142142
[orchard]: https://github.com/clojure-emacs/orchard
143143
[compliment]: https://github.com/alexander-yakushev/compliment
144-
[clj-suitable]: https://github.com/rksm/clj-suitable
144+
[clj-suitable]: https://github.com/clojure-emacs/clj-suitable
145145
[tools.trace]: https://github.com/clojure/tools.trace
146146
[tools.namespace]: https://github.com/clojure/tools.namespace
147147
[cljfmt]: https://github.com/weavejester/cljfmt

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
^:inline-dep [mvxcvi/puget "1.3.1"]
1111
^:inline-dep [fipp "0.6.23"] ; can be removed in unresolved-tree mode
1212
^:inline-dep [compliment "0.3.11"]
13-
^:inline-dep [org.rksm/suitable "0.3.5" :exclusions [org.clojure/clojurescript]]
13+
^:inline-dep [org.rksm/suitable "0.4.0" :exclusions [org.clojure/clojurescript]]
1414
^:inline-dep [cljfmt "0.7.0" :exclusions [org.clojure/clojurescript]]
1515
^:inline-dep [org.clojure/tools.namespace "1.0.0"]
1616
^:inline-dep [org.clojure/tools.trace "0.7.10"]

src/cider/nrepl/middleware/complete.clj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414
(try (require 'shadow.cljs.devtools.api) true
1515
(catch Throwable _ false)))
1616

17-
;; TODO: Suitable is currently broken for shadow-cljs
18-
;; See https://github.com/rksm/clj-suitable/issues/15 for details
19-
(def suitable-enabled? (not shadow-cljs-present?))
17+
;; controls if dynamic cljs code completions are active
18+
(def suitable-enabled? true)
2019

2120
(def suitable-complete-for-nrepl
2221
(when suitable-enabled?
@@ -52,7 +51,7 @@
5251
;; First we get whatever candidates we can from the ClojureScript compiler source
5352
(cond-> (complete/completions prefix (merge completion-opts {:sources cljs-sources}))
5453
;; and we optionally append to them dynamically obtained candidates
55-
;; See https://github.com/rksm/clj-suitable#how-does-it-work for details
54+
;; See https://github.com/clojure-emacs/clj-suitable#how-does-it-work for details
5655
(and suitable-enabled? enhanced-cljs-completion?)
5756
(concat (suitable-complete-for-nrepl (assoc msg :symbol prefix)))))
5857
;; Clojure completion

0 commit comments

Comments
 (0)