diff --git a/rc/filetype/crystal.kak b/rc/filetype/crystal.kak index 2bb57fa6..ada76ff8 100644 --- a/rc/filetype/crystal.kak +++ b/rc/filetype/crystal.kak @@ -206,7 +206,7 @@ define-command -hidden crystal-indent-on-new-line %{ # Copy previous line indent try %{ execute-keys -draft K } # Remove previous line's trailing spaces - try %{ execute-keys -draft k :ruby-trim-indent } + try %{ execute-keys -draft k :crystal-trim-indent } # Indent after start structure/opening statement try %{ execute-keys -draft k ^\h*(?:begin|case|class|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|.+\bdo$|.+\bdo\h\|.+(?=\|))[^0-9A-Za-z_!?] j } }