Fork me on GitHub
#vim
<
2021-02-24
>
orestis09:02:14

Is anyone seeing Vim mis-indent Clojure inside a really long function? Looks like after 200 lines it gives up and you start back at column zero.

dharrigan09:02:47

not seen that yet

dharrigan09:02:59

although, my functions are rarely more than 20 lines long, max.

dharrigan09:02:15

I wouldn't like to face a 200 line long function 🙂

juhoteperi09:02:17

It is a feature

juhoteperi09:02:17

The fork (https://github.com/clojure-vim/clojure.vim) has performance patches applied so indent might work comfortably with longer forms

juhoteperi09:02:03

Long deftest form could be more common than long defn

orestis09:02:48

It's actually let g:clojure_maxlines = 1000 that fixes it. The default is 100

juhoteperi09:02:24

I had forgotten to merge the performance branch, been just running it myself, but merged to master now.

dharrigan09:02:16

will give it a shot, thank you 🙂

juhoteperi09:02:33

https://github.com/clojure-vim/clojure.vim/issues/6 shows quite nice improvement on indent speed, from just syntax rule changes

orestis10:02:19

Nice 🙂 I finally got a VimR snapshot release with NeoVim 0.5 but I hadn't gotten around to faff with treesitter and stuff, I'll use the fork for Clojure for now.