Fork me on GitHub
#calva
<
2018-12-11
>
pez08:12:53

I have synchronized my fork of cljfmt to make Calva Formatter benefit from some recent bugs fixed upstream. Update and experience the bliss of the cursor placing itself correctly almost always. (There is still the placing of the cursor after a top level form that I need to figure out a good way to deal with.)

pez08:12:09

Otherwise the main issue with Calva Formatter is that Calva Paredit is using its own, conflicting, indentation rules, so that code gets reformatted (wrongly, I would say) after editing with those commands. My plan to fix that was to make the formatter's library available to the other extensions, but that work is stuck on some shadow-cljs isssues that I am unable to sort out by myself it seems (I've spent way too much time on trying anyway.) I'm figuring on changing paths for sharing that code, but will give the current path some more time. If someone would like to help me with this, I'd appreciate it a lot.

pez08:12:36

Also Calva got a new command last night. It's Copy last evaluation results to the clipboard. I think it will come in handy often in my own work, at least. 😄

mseddon12:12:00

Oh, on the topic of key bindings- under windows Ctrl+Esc brings up the start menu, so that binding is toast. 🙂

pez12:12:07

Good to know. I'll make it just ESC then. 😃

mseddon12:12:15

works for me I think 🙂

mseddon12:12:44

btw, I do intend to contribute to calva but man... so little time atm

pez12:12:45

vscode allows for pretty good precision for when the keybindings are active

mseddon12:12:09

I think it's really important clojure gets good vscode support, since it's so vastly popular

mseddon13:12:00

(I really want a proper cider-repl like experience at some point, though I am not sure if that's possible currently in vscode)

mseddon13:12:25

mostly I need to actually sit down and write a bunch of vscode extensions so I have a hope of working out how to do anything useful 😉

pez13:12:10

I think it's possible if we use some special files for it and control the contents of those files. That is what CIDER does, it looks to me.

pez13:12:29

Calva is my first extension, just say'n. 😃

mateus.pimentel.w13:12:42

@pez how is the Calva compatibility with shadow-cljs?

mseddon15:12:34

😄 yeah that would be great

pez15:12:16

@mateus.pimentel.w it's decent. I use it for Calva dev. 😀

pez15:12:27

Easier with the dependencies too. Just put in a dependency in cider/nrepl, 0.19.0-SNAPSHOT and shadow will figure out the rest.