Hello, a new and "deeper" question about Cursive.
I like to use https://github.com/jeaye/orchestra and its defn-spec
macro.
In a namespace, I have two functions:
(defn-spec start-server ::aleph-webserver
[config ::config]
...)
(defn stop-server [server]
(.close server))
In another namespace the text completion gives me stop-server
but not start-server
.
The completion works well in emacs though.
The mechanism for code "understanding" seems different. Does Cursive use nrepl for that or does it use an internal mechanism?
Thanksdo you have a hint for using cursive with http://juxt.aero macro usetime
? (https://github.com/juxt/aero/blob/master/src/aero/impl/macro.cljc#L12)
Usage is
(macro/usetime
(defn foo [])
)
thanks!
Do you mean so that it will recognise the defn inside it? You could resolve it as clojure.core/do, I think that should do it. https://cursive-ide.com/userguide/macros.html#customising-symbol-resolution