Fork me on GitHub
#calva
<
2022-07-16
>
manas_marthi00:07:46

Hi how to copy entire map while cursor is under the opening curly brace

seancorfield00:07:49

I tend to do shift+ctrl+right-arrow and then ctrl-c

seancorfield00:07:30

Calva: Select Forward Sexp is the underlying command there.

seancorfield00:07:54

See https://calva.io/paredit/#selecting for other useful commands and key bindings (that whole page is very useful!):

pez11:07:26

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.

1
1
pinkfrog06:07:26

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.

pez07:07:42

Calva doesn't provide snippets. I think clojure-lsp might be doing it, though.

pinkfrog07:07:47

It is the (comment) snippet, isn’t that something provided by Calva?

pez08:07:44

I’d check the clojure-lsp source code.

pinkfrog10:07:37

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.

pez10:07:32

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/

bringe03:07:43

https://clojure-lsp.io/settings/#snippets It looks like you can configure your own snippets.

bortexz11:07:28

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?

borkdude11:07:30

For kondo + lsp to work properly you need to open vscode in the root of your project (where your deps.edn is)

bortexz11:07:37

ok, thanks!