This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
Hi how to copy entire map while cursor is under the opening curly brace
I tend to do shift+ctrl+right-arrow
and then ctrl-c
Calva: Select Forward Sexp
is the underlying command there.
See https://calva.io/paredit/#selecting for other useful commands and key bindings (that whole page is very useful!):
You can also use Calva: Expand Selection and then Copy. On Mac: ctrl+w cmd+c
. Expand Selection, when there is no selection, will always select the ”Current Form”. See: https://www.youtube.com/watch?v=8ygw7LLLU1w Meaning that @U04V70XH6’s suggestion will be more precise in selecting the forward form, depending on where the cursors is.
Thank you
This is more of a vscode question. I’d like to make the triggering of the comment snippet to be shortened to “com” prefix. Where can I see the content of the shipped comment snippet so that I can copy paste and make my onw.
searching https://github.com/BetterThanTomorrow/calva/search?p=2&q=snippet doesn’t give relevant results.
My understanding is under vscode, Calva is the main controller, it launches the clojure-lsp binary. Dunno how the vscode snippet is related with clojure-lsp. I thought it was a mere binary.
That's a correct understanding. Though maybe a bit more complicated than that. Calva starts clojure-lsp and to some extent communicate with it. But clojure-lsp also then acts as an extension on its own, providing features using the LSP protocol. Since you are looking for the implementation of that snippet, I wanted to let you know that you won't find it in Calva. Something else is providing the snippet, and I think it is clojure-lsp. I might be wrong, but it's a place to start: • https://clojure-lsp.io/ • https://github.com/clojure-lsp/clojure-lsp/
https://clojure-lsp.io/settings/#snippets It looks like you can configure your own snippets.
Thanks! That’s it https://github.com/clojure-lsp/clojure-lsp/blob/11019f6b86ceef77f23216058be4c372006624ba/lib/src/clojure_lsp/feature/completion_snippet.clj
I work on a workspace with many top-level clojure projects. After I deleted the .clj-kondo/.cache, it doesn’t seem to be recreated anymore, has anyone faced this before?