conjure

:neovim:+:clj: https://github.com/Olical/conjure - If you're enjoying Conjure and want to say thanks: https://github.com/users/Olical/sponsorship :smile: (alt https://conjure.fun/discord)
2020-10-22T06:05:36.177700Z

Anthony Khong 2020-10-22T10:57:28.179300Z

Hi all, do you use https://github.com/venantius/vim-cljfmt? If so, do you install vim-fireplace too? If not, what alternatives do I have?

victorb 2020-10-22T11:23:15.180900Z

I myself use vim-sexp + conjure, so far found conjure to have a nicer dev experience than vim-fireplace, especially with the nice output window. Otherwise you might have better luck in #vim to find alternatives, as this channel is conjure-specific

Olical 2020-10-22T11:24:02.182100Z

@anthony550 If anyone wants to use that right now you'd need to have fireplace since I think that's the only thing it supports 😢 I'd love to PR in Conjure support if it detects it, or maybe just fork it, delete the fireplace part and add Conjure calls. Probably wouldn't be too much work, I just haven't got time to do it right now. I think modifying an existing plugin is the way to go rather than adding it to Conjure as a core feature, I think. Only because formatting is an opinionated thing and requires extra dependencies etc, so Conjure having tools for that would need to be suuuuuper configurable to support everyone's needs. A couple of plugins that do things exactly how the users want however... that'd be really nice.

Olical 2020-10-22T11:24:36.182800Z

And it means I can distribute some maintenance of some specific fiddly areas of tooling into other plugins that rely on Conjure at their core to handle the fiddly "just eval this stuff" parts.

Olical 2020-10-22T11:24:59.183300Z

So I can focus on the fiddly parts in the middle and give other people a good platform to build all sorts of cool tooling on top of 😄

Olical 2020-10-22T11:26:13.184100Z

And yeah, I just rely on == / =- with vim-sexp + some manual tweaking for all of my formatting. I haven't use a Clojure formatter that worked in every way myself and my team liked since I began doing it full time 😬

Anthony Khong 2020-10-22T11:33:56.184200Z

I’m pretty set on Conjure, but I do want to use vim-cljfmt, so I thought I’d ask in the Conjure channel, as it’ll be people with on the same boat as me.

Olical 2020-10-22T12:27:32.184900Z

Both should be okay side by side, they don't step on each others toes as far as I know 😄

Olical 2020-10-22T12:28:02.185100Z

I would love to provide a cljfmt for Conjure, but I'm hoping someone else will step in and handle it for me before I get to it I guess 😅

Anthony Khong 2020-10-22T12:58:45.185300Z

Ooo, is that an invitation/challenge?? 😆 Honestly, I would love to take a stab at it, but I would want to do it in a way that sparks joy. So instead of forking vim-cljfmt, I’d want to write it from scratch with Aniseed. It’ll be very educational for me, because I’ve never used Lua or Fennel or Aniseed before. Looking at the source for vim-cljfmt, it looks doable I may have to ask you many questions though!

Olical 2020-10-22T13:07:46.185500Z

Fair enough! If you do take up the challenge (obviously no expectation at all) then I'll be more than happy to help answer questions and support you through it

Anthony Khong 2020-10-22T13:24:35.186300Z

Alright. It’s on! I’ll give it a shot.

orestis 2020-10-22T16:47:03.186900Z

What does =- do? Can’t find it by google...

Olical 2020-10-22T16:47:50.187200Z

Indents up to the root form

Olical 2020-10-22T16:47:56.187400Z

I think it's maybe a sexp thing?

orestis 2020-10-22T16:59:16.187700Z

Ohhhh

rafaeldelboni 2020-10-22T17:23:13.188400Z

Found a @nick548 in the wild 🙂