Skip to content

Commit 856ff1a

Browse files
committed
Remove some unnecessary indentation rules
1 parent f271dca commit 856ff1a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

indent/clojure.vim

+5-8
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ if !exists('g:clojure_indent_rules')
3939
\ 'let': 1, 'binding': 1, 'defmethod': 1,
4040
\ 'if': 1, 'if-not': 1, 'if-some': 1, 'if-let': 1,
4141
\ 'when': 1, 'when-not': 1, 'when-some': 1, 'when-let': 1, 'when-first': 1,
42-
\ 'case': 1, 'cond': 0, 'cond->': 1, 'cond->>': 1, 'condp': 2,
42+
\ 'case': 1, 'cond->': 1, 'cond->>': 1, 'condp': 2,
4343
\ 'while': 1, 'loop': 1, 'for': 1, 'doseq': 1, 'dotimes': 1,
44-
\ 'do': 0, 'doto': 1, 'comment': 0, 'as->': 2,
45-
\ 'delay': 0, 'future': 0, 'locking': 1,
46-
\ 'try': 0, 'catch': 2, 'finally': 0,
44+
\ 'doto': 1, 'as->': 2,
45+
\ 'locking': 1, 'catch': 2,
4746
\ 'reify': 1, 'proxy': 2, 'defrecord': 2, 'defprotocol': 1, 'definterface': 1,
4847
\ 'extend': 1, 'extend-protocol': 1, 'extend-type': 1
4948
\ }
@@ -64,9 +63,7 @@ if !exists('g:clojure_indent_rules')
6463
\ })
6564

6665
" core.async
67-
call extend(g:clojure_indent_rules, {
68-
\ 'alt!': 0, 'alt!!': 0, 'go': 0, 'go-loop': 1, 'thread': 0
69-
\ })
66+
call extend(g:clojure_indent_rules, { 'go-loop': 1 })
7067

7168
" core.logic
7269
call extend(g:clojure_indent_rules, {
@@ -286,7 +283,7 @@ function! s:ListIndent(delim_pos)
286283
endfor
287284

288285
let rules = s:Conf('clojure_indent_rules', {})
289-
let sym_match = get(rules, sym, -1)
286+
let sym_match = get(rules, sym)
290287
" TODO: handle 2+ differently?
291288
if sym_match > 0 | return base_indent + 1 | endif
292289
endif

0 commit comments

Comments
 (0)