Skip to content

Commit

Permalink
Indent with- macros and functions like cljfmt default
Browse files Browse the repository at this point in the history
  • Loading branch information
axvr committed Jan 19, 2025
1 parent 161ea5f commit f6667a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions clj/resources/indent-test-cases/with/in.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
(slurp f))

(with-meta obj
{:foo 1})
{:foo 1})

(with-meta
obj
obj
{:foo 1})

(with-out-str
Expand Down
6 changes: 3 additions & 3 deletions clj/resources/indent-test-cases/with/out.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
(slurp f))

(with-meta obj
{:foo 1})
{:foo 1})

(with-meta
obj
{:foo 1})
obj
{:foo 1})

(with-out-str
())
Expand Down
4 changes: 1 addition & 3 deletions indent/clojure.vim
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ endfunction

call s:SConf('clojure_indent_style', 'standard')
call s:SConf('clojure_indent_multiline_strings', 'standard')
call s:SConf('clojure_fuzzy_indent_patterns', [
\ '\m^def', '\m^let', '\m^with-\%(meta\|in-str\|out-str\|loading-context\)\@!'
\ ])
call s:SConf('clojure_fuzzy_indent_patterns', ['\m^def', '\m^let', '\m^with-'])

" FIXME: reader conditional indentation?

Expand Down

0 comments on commit f6667a5

Please sign in to comment.