Fork me on GitHub
#conjure
<
2021-05-27
>
emilaasa07:05:00

xmap <leader>f <Plug>(coc-format-selected)

walterl15:05:31

TIL: this does 1-/2-space indents "correctly" OOTB 🎉

Eugene Tyurin23:05:52

Hmmm... it looks like coc.nvim fights with deoplete.nvim

dharrigan07:05:02

I use clojure-vim

dharrigan07:05:17

and just use the regular built-in formatting options in vim

emilaasa07:05:51

Interesting - that's in vim by default?

dharrigan07:05:21

basically just = or gq

emilaasa07:05:03

Have you had any luck with parinfer or similar in vim?

dharrigan07:05:11

I use parinfer-rust

dharrigan07:05:17

it keeps things aligned too

dharrigan07:05:24

for me, it works really really well.

emilaasa07:05:26

Interesting, I had a behavior where the "undo-stack" got up to about 2k very quickly when I did normal (well normal for me) editing

harryvederci12:05:26

Yeah I've had that as well. You could try :earlier 1m in that case?

dave13:05:46

I've used :earlier to get out of binds like this before. It's a super useful trick to know.

emilaasa13:05:41

@mail089 That's a good one yeah, thanks for reminding me

emilaasa14:05:20

Btw you guys are super duper nerds, I love it. (That's a compliment)

pizzaspin 3
walterl15:05:31

TIL: this does 1-/2-space indents "correctly" OOTB 🎉

walterl15:05:18

(select-keys m
             [:a :b :c])
Moving m to new line:
(select-keys
 m
 [:a :b :c])
Changing select-keys to do (macro with body):
(do
  m
  [:a :b :c])

walterl15:05:48

No fiddling with lispwords or g:clojure_special_indent_words

GitHub19:05:09

[Olical/conjure] Issue opened by Diskriminantti