diff --git a/rc/filetype/clojure.kak b/rc/filetype/clojure.kak index e7852227..8f2cc488 100644 --- a/rc/filetype/clojure.kak +++ b/rc/filetype/clojure.kak @@ -199,11 +199,11 @@ define-command -hidden clojure-indent-on-new-line %{ try %{ # If a special form, indent another (indentwidth - 1) spaces - execute-keys -draft '"wze\A' %opt{clojure_special_indent_forms} '\z' + execute-keys -draft '"wze[\s()\[\]\{\}]\A' %opt{clojure_special_indent_forms} '\z' execute-keys -draft '"wzes.{' %sh{printf $(( kak_opt_indentwidth - 1 ))} '}\K.*;"i' } catch %{ # If not special and parameter appears on line 1, indent to parameter - execute-keys -draft '"wzes\h\K[^\s].*;"i' + execute-keys -draft '"wze[\s()\[\]\{\}]s\h\K[^\s].*;"i' } } try %{ execute-keys -draft '[rl"i' }