From 856ff1a079e17bbe492d02667d733533827f8473 Mon Sep 17 00:00:00 2001 From: Alex Vear Date: Mon, 23 Sep 2024 00:09:06 +0100 Subject: [PATCH] Remove some unnecessary indentation rules --- indent/clojure.vim | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/indent/clojure.vim b/indent/clojure.vim index 47f797e..38c1a38 100644 --- a/indent/clojure.vim +++ b/indent/clojure.vim @@ -39,11 +39,10 @@ if !exists('g:clojure_indent_rules') \ 'let': 1, 'binding': 1, 'defmethod': 1, \ 'if': 1, 'if-not': 1, 'if-some': 1, 'if-let': 1, \ 'when': 1, 'when-not': 1, 'when-some': 1, 'when-let': 1, 'when-first': 1, - \ 'case': 1, 'cond': 0, 'cond->': 1, 'cond->>': 1, 'condp': 2, + \ 'case': 1, 'cond->': 1, 'cond->>': 1, 'condp': 2, \ 'while': 1, 'loop': 1, 'for': 1, 'doseq': 1, 'dotimes': 1, - \ 'do': 0, 'doto': 1, 'comment': 0, 'as->': 2, - \ 'delay': 0, 'future': 0, 'locking': 1, - \ 'try': 0, 'catch': 2, 'finally': 0, + \ 'doto': 1, 'as->': 2, + \ 'locking': 1, 'catch': 2, \ 'reify': 1, 'proxy': 2, 'defrecord': 2, 'defprotocol': 1, 'definterface': 1, \ 'extend': 1, 'extend-protocol': 1, 'extend-type': 1 \ } @@ -64,9 +63,7 @@ if !exists('g:clojure_indent_rules') \ }) " core.async - call extend(g:clojure_indent_rules, { - \ 'alt!': 0, 'alt!!': 0, 'go': 0, 'go-loop': 1, 'thread': 0 - \ }) + call extend(g:clojure_indent_rules, { 'go-loop': 1 }) " core.logic call extend(g:clojure_indent_rules, { @@ -286,7 +283,7 @@ function! s:ListIndent(delim_pos) endfor let rules = s:Conf('clojure_indent_rules', {}) - let sym_match = get(rules, sym, -1) + let sym_match = get(rules, sym) " TODO: handle 2+ differently? if sym_match > 0 | return base_indent + 1 | endif endif