Fork me on GitHub
#calva
<
2019-01-14
>
pez11:01:15

Re bracket highlighting. I use Clojure Warrior and disable vscode's built-in one.

metal 3
mattly14:01:43

I use bracket-pair-colorizer-2 and also disable the built-in one

metal 1
mseddon19:01:50

It would rock to have a clojure user vscode wiki or such with all these little suggestions :)

jeremy21:01:47

@pez Which setting is it to disable vs-code built in one?

jeremy21:01:24

That looks much nicer.

mseddon21:01:24

I would definitely suggest swapping in one of the above paren matchers

mseddon21:01:14

My issue was really that VSCode's paren matching is inconsistent, but perfectly acceptable in a language like typescript etc. I go mad in lisp without some support ;)

mseddon21:01:19

As I see it, most languages don't find so many adjacent parens regularly. Leftmost matching is definitely better when this happens, but Microsoft has never catered to a large community of Lisp hackers before, so vscode is not very adept yet :)

mattly21:01:56

I rebound a bunch of paredit keys recently and am finding myself missing parinfer less

mattly21:01:48

particularly am finding the paredit navigation stuff more useful and using vscode's goto matching pair less

pez21:01:17

I have also rebound many paredit keys. The default ones are pretty lame.

mseddon22:01:36

I really love the thought that has gone into Parinfer, but Paredit works really well once it clicks.

pez22:01:31

My issue with Parinfer is that it folds the trailing parens. It shouldn’t need to and then it would be compatible with calva-fmt.

jeremy22:01:39

I don’t utilize paredit enough. I haven’t gotten comfortable with it and I kept switching ides a lot so my keybindings kept changing where i’d familiarize myself with something different like smart parents.

mattly22:01:27

I bound transpose to ctrl-alt-t, rebound splice to ctrl-alt-m, and split to ctrl-alt-/

mattly22:01:04

I use a programmable keyboard with the arrows on a layer at s/e/d/f and so this also puts transpose logically near my navigation keys

mattly22:01:00

and splice/split near slurp/barf

mattly23:01:08

my only real gripe now is that you can't slurp from more than one layer deep

mattly23:01:14

like you can in emacs