lsp

2025-01-18T00:15:34.915359Z

Just learned that neovim supports:

let g:clojure_fuzzy_indent = 1
  let g:clojure_fuzzy_indent_patterns = ['^with', '^def', '^let', '^box', '^h-box', '^v-box', '^fn\*', '^when-']
So that the body args of forms that start with when- will not be aligned to the first arg. I'm looking at the config docs and found:
{:cljfmt {:indents {foo [[:block 0]]}}}
So may an equivalent is possible?

2025-01-18T00:29:11.985939Z

Thinking it would be like:

{:cljfmt {:extra-indents {#re "^with" [[:inner 0]]
                          #re "^def"  [[:inner 0]]
                          #re "^let"  [[:inner 0]]
                          #re "^box"  [[:inner 0]]
                          #re "^h-box"  [[:inner 0]]
                          #re "^v-box"  [[:inner 0]]
                          #re "^fn\*"  [[:inner 0]]
                          #re "^when-"  [[:inner 0]]}}}

2025-01-18T03:44:33.742469Z

Awesome! That did it

{:cljfmt {:extra-indents {#re "^with" [[:inner 0]]
                          #re "^def"  [[:inner 0]]
                          #re "^let"  [[:inner 0]]
                          #re "^box"  [[:inner 0]]
                          #re "^h-box"  [[:inner 0]]
                          #re "^v-box"  [[:inner 0]]
                          #re "^fn\\*"  [[:inner 0]]
                          #re "^when-"  [[:inner 0]]}}}

ericdallo 2025-01-18T13:19:05.822119Z

Cool, never needed that, but makes sense