Fork me on GitHub
#chlorine-clover
<
2021-02-02
>
mauricio.szabo12:02:55

@ivana as for the inline result, VSCode does not allow to offer "rich visualizations" to inline results, and currently the results that are rendered on the console are hiccup data structures. I'm thinking on a way to represent results as text, but I'm not yet sure on how this could play nice with the recent improvements on Interactive Results... But it would be interesting to have a converter to text - maybe I could offer a similar Chlorine/Clover experience in NeoVIM too 😄

mauricio.szabo12:02:10

(so much to try, so little time 😞)

ivana13:02:40

@mauricio.szabo there are many plugins which shows inline results in different ways, some of this ways looks more pretty than others, but all of them are better than total absence of it 🙂 And also REPL window does not autoscroll down to show last result - user have to scroll it manually each time to see the result of evaluation. Or there is some setting for this autoscroll anywhere?

mauricio.szabo14:02:06

@ivana yes, the autoscroll is buggy. It did work on some previous version, I'm still trying to figure out what's wrong 😱

pez22:02:43

Hello fellow VS Code Clojurians, here’s an experiment. Calva contains a lot of work and creativity towards making Clojure coding nice. And Clover seems super nice and reaches REPLs that Calva does not. What if Calva’s static features were easier to reach without the clashing of the REPL UIs? In this build of Calva there is a setting: calva.hideREPLUi that will, exactly, hide most of Calva’s REPL UI elements. In theory it should then be a possible companion to Clover’s REPL services. I’d love some help testing if it works. PR: https://github.com/BetterThanTomorrow/calva/pull/1009 Calva VSIX: https://10706-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.158-1005-hide-repl-option-52f9d35a.vsix

seancorfield22:02:42

@pez Are there potentially other extensions I should disable before trying to install this? I have Strict Paredit and Parinfer and a few others that maybe might conflict?

seancorfield22:02:13

Also, how do I actually use that URL? I clicked on it and my browser helpfully turned it into a .zip file 😐

seancorfield22:02:27

Figured it out 🙂 Renamed .zip -> .vsix and then discovered that the Extensions panel has ... with Install from VSIX option. I disabled the standalone clj-kondo, as well as Strict Paredit and Parinfer...

pez23:02:37

You can use Parinfer, but you will want to disable Calva’s auto-formatting then. (You’ll still have on-demand formatting of the current list using the tab key.) But I certainly use the autoformatter instead,.

seancorfield23:02:50

Oh wow, that LSP integration shows a LOT of code assistance!

pez23:02:02

It packs a punch!

seancorfield23:02:28

I suspect I'm going to need to re-map all of those Paredit keys -- they are not at all what I would expect 😐

pez23:02:31

Depending on what keys you expect there might be keymaps out there that work better for you. I know @borkdude has some Emacsy ones .

seancorfield23:02:16

I will try the Calva keys but, lordy, they are not very intuitive...

pez23:02:37

That paredit mostly use the same as the current one, I think.

seancorfield23:02:48

wrap ( -- I'm used to ctl-alt-9 or ctl-alt-( not ctl-alt-shift-p 👀

pez23:02:11

Yeah, some are a bit crazy. But ctrl+alt+( doesn’t make sense on most non-english keyboards.

pez23:02:33

I tend to instead do Expand Selection and then type a bracket, to wrap. But that is I. 😄

pez23:02:24

On Mac that is ctrl+w ( which is sort of a chord if you squint.

pez23:02:16

Please let them know in #lsp if you like their work. I certainly do!

seancorfield23:02:47

You mentioned the calva.hideREPLUi setting -- how do I get to that / update it?

seancorfield23:02:45

Typing Settings doesn't show anything related to Calva -- I already tried that -- so it's not at all obvious where/how I would find or change the setting that @pez mentioned...

seancorfield23:02:51

Oh, it's just in the Extensions Settings for Calva as a check box. Sorry, I was expecting to find some hidden JSON stuff...

seancorfield23:02:14

Ah, looks like I need to disable my standalone rainbow brackets extension too.

pez23:02:49

Few rainbow extensions should be able to match Calva’s anyway. 😃