vim

For discussion on all things (neo)vim.
orestis 2021-02-24T09:30:14.016200Z

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.

dharrigan 2021-02-24T09:31:47.016400Z

not seen that yet

dharrigan 2021-02-24T09:31:59.016800Z

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

dharrigan 2021-02-24T09:32:15.017200Z

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

juhoteperi 2021-02-24T09:32:17.017300Z

It is a feature

dharrigan 2021-02-24T09:33:09.018100Z

😲

juhoteperi 2021-02-24T09:33:17.018300Z

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

juhoteperi 2021-02-24T09:35:03.018700Z

Long deftest form could be more common than long defn

orestis 2021-02-24T09:35:48.019Z

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

dharrigan 2021-02-24T09:38:18.019200Z

ooh

dharrigan 2021-02-24T09:38:24.019400Z

a fork!

juhoteperi 2021-02-24T09:39:24.020100Z

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

dharrigan 2021-02-24T09:40:16.020700Z

will give it a shot, thank you 🙂

juhoteperi 2021-02-24T09:40:33.021100Z

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

orestis 2021-02-24T10:42:19.022800Z

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.