Hi there! Is anybody using which-key
by any chance? I am a newbie and I am wondering how I can see help for things like cider's C-c C-j
for instance given C-x C-c
closes the buffer ๐
Trying to understand how to use which-key
mostly ๐
which-key kicks in after a pause when entering a prefix. hereโs a example of marking a sexp (using my custom bindings) and then inserting it into the repl,
oh ok let me try that ๐
cause C-c C-j C-x
does not trigger it but C-c C-x
does enter in it with the cider-start-map
oh, this is magic, C-c C-j
and I wait a little and now things appear ๐
thank you very much, you showed me the way ๐
you can also configure the amount of delay with which-key-idle-delay. (the docs say you have to set it before starting which-key-mode)
So, in a lein-figwheel project, with cider-jack-in-cljs
, I expect the piggieback middleware to be injected. But it isnโt. Am I wrong expecting this? Or what could cause it to not be?
In deps.edn:
:shadow {:extra-deps {binaryage/devtools {:mvn/version "1.0.2"}
cider/cider-nrepl {:mvn/version "0.25.6"}
cider/piggieback {:mvn/version "0.5.2"}
refactor-nrepl/refactor-nrepl {:mvn/version "2.5.0"}
thheller/shadow-cljs {:mvn/version "2.11.14"}}
:extra-paths ["test"]
:main-opts ["-m" "shadow.cljs.devtools.cli"]}
In shadow-cljs.edn:
:nrepl {:host "0.0.0.0"
:port 5310
:middleware [cider.nrepl/cider-middleware
cider.piggieback/wrap-cljs-repl
refactor-nrepl.middleware/wrap-refactor]}
I use cider-connect not cider-jack-in to use a cljs repl, so this may not be everything, but I'm assuming the problem is that piggieback isn't found on the classpathAdjust accordingly for project.clj v deps.edn
It always is for me. Open an issue with a repro?
To clarify, the dependency is injected. But not the middleware. The middleware is added in a profile that I donโt use ( :figwheel
). So I was thinking maybe CIDER sees the middleware there and refrains from injecting it. This all was not happening on my machine, but on a clooagues, over screensharing, so I couldnโt do the experiments that I would have done otherwise. And thus have too little context for a meaningful issue, I think.
This is for jack-in so trying not to have those things specified in the project.