Fork me on GitHub
#vim
<
2017-11-27
>
dominicm08:11:31

@uwo tpope has indicated that he's interested in taking a pr for disabling the formatprg

dominicm08:11:09

You can probably set formatprg in /after/ftplugin/clojure.vim

uwo16:11:40

thanks. I ended up using after

dominicm16:11:37

@uwo curious, what's par?

dominicm16:11:14

ah, figured it was a clojure tool (like paren or something)

uwo16:11:36

it’s just a command line tool from ’93 🙂

dominicm16:11:16

quite like it, surpirsed you use it in Clojure files?

dominicm16:11:39

Gonna set this for use in asciidoc, gitcommit, etc. files

dominicm16:11:17

A shame that formatprg can't refer to columnwidth or something. I guess you could use a functin which looked at that…

dominicm16:11:28

> In the third case the 'textwidth' option controls the length of each formatted line (see below). If the 'textwidth' option is 0, the formatted line length is the screen width (with a maximum width of 79). That would be nice behaviour to punt to par when using it

uwo16:11:26

I use it to format width of comments and docstrings

uwo16:11:40

I find the normal =ap works for clojure code for me

uwo16:11:53

obviously doesn’t fix lots of things, but…

dominicm16:11:27

zprint is pretty good at fixing stuff, fwiw

dominicm16:11:16

Realistically, you want different behaviour for formatting different things

uwo16:11:41

cool never heard of zprint until now

uwo16:11:52

ha. I had already starred it somehow

rgm21:11:53

oh, dang... thanks for the zprint hint @dominicm... !a(za ftw.

dominicm21:11:02

@rgm so cool right?

rgm21:11:49

tried and failed to get your pprint fork working (bet it's more me than you) but this is even better

rgm21:11:23

c!! and !aFza is really nice with a repl connection for putting together test cases

dominicm21:11:34

@rgm Just so I'm certain, which version of cider-nrepl are you using?

dominicm21:11:52

It requires 0.15.1 (There's a bug in 0.15.0!)

rgm21:11:31

hm, might have been 0.15.0 ... I'll try to give it another go with 0.16.0-snapshot and report

dominicm21:11:25

(0.15.0 works 50% of the time, dependent on how a topological sort happens to fall…)