Skip to content

Commit

Permalink
Rename compliment ns
Browse files Browse the repository at this point in the history
  • Loading branch information
eval committed Apr 30, 2024
1 parent 42d1535 commit d1ada0a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
com.bhauman/rebel-readline {:local/root "./vendor/rebel-readline/rebel-readline"}
deps-try/cli {:local/root "./vendor/deps-try.cli"}
deps-try/http-client {:local/root "./vendor/deps-try.http-client"}
io.github.eval/compliment {:git/sha "9e15f01eead254f28b7c484c54dd19bfdd6be16d"}
io.github.eval/compliment {:git/sha "cd9706db27d456e8940dcd1118174c94effa9358"}
org.clojure/clojure {:mvn/version "1.12.0-alpha10"}
org.clojure/tools.gitlibs {:mvn/version "2.5.197"}
;; suppress logging
Expand Down
8 changes: 4 additions & 4 deletions src/eval/deps_try/rr_service.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
(:require
[clojure.java.basis]
[clojure.string :as str]
[compliment.core]
[compliment.utils]
[deps-try.compliment.core]
[deps-try.compliment.utils]
[eval.deps-try.fs :as fs]
[eval.deps-try.util :as util]
[rebel-readline.clojure.line-reader :as clj-reader]
Expand Down Expand Up @@ -62,9 +62,9 @@
options (if (:extra-metadata options)
options
(assoc options :extra-metadata #{:private :deprecated}))]
(with-redefs [compliment.utils/classpath classpath-for-completions]
(with-redefs [deps-try.compliment.utils/classpath classpath-for-completions]
#_(prn ::-complete :word word :options options)
(doall (cond-> (compliment.core/completions word options)
(doall (cond-> (deps-try.compliment.core/completions word options)
:namespace/other? (->> (map (fn [{:keys [ns] :as cand}]
(if-not (seq ns)
cand
Expand Down
5 changes: 3 additions & 2 deletions vendor/rebel-readline/rebel-readline/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
org.jline/jline-reader {:mvn/version "3.23.0"}
org.jline/jline-terminal {:mvn/version "3.23.0"}
org.jline/jline-terminal-jansi {:mvn/version "3.23.0"}
dev.weavejester/cljfmt {:mvn/version "0.11.2"} ;; depends on tools reader
io.github.eval/compliment {:git/sha "9e15f01eead254f28b7c484c54dd19bfdd6be16d"}
dev.weavejester/cljfmt {:mvn/version "0.11.2"
:exclusions [org.clojure/tools.cli]} ;; depends on tools reader
io.github.eval/compliment {:git/sha "cd9706db27d456e8940dcd1118174c94effa9358"}
io.github.borkdude/deflet {:mvn/version "0.1.0"}}}
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

(defmethod clj-reader/-complete ::service [_ word options]
;; lazy-load for faster startup
(when-let [completions (requiring-resolve 'compliment.core/completions)]
(when-let [completions (requiring-resolve 'deps-try.compliment.core/completions)]
(if options
(completions word options)
(completions word))))
Expand Down Expand Up @@ -111,7 +111,7 @@

(defmethod clj-reader/-doc ::service [self var-str]
;; lazy-load for faster startup
(when-let [doc ((requiring-resolve 'compliment.core/documentation) var-str)]
(when-let [doc ((requiring-resolve 'deps-try.compliment.core/documentation) var-str)]
(let [{:keys [ns name private]
:as _meta} (if (special-symbol? (symbol var-str))
{:ns (find-ns 'clojure.core) :name (symbol var-str)}
Expand Down

0 comments on commit d1ada0a

Please sign in to comment.