mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-28 06:08:05 +03:00
rc crystal: stop using ruby-trim-indent
This commit is contained in:
parent
d9ea62666b
commit
4c7207991a
@ -206,7 +206,7 @@ define-command -hidden crystal-indent-on-new-line %{
|
|||||||
# Copy previous line indent
|
# Copy previous line indent
|
||||||
try %{ execute-keys -draft K <a-&> }
|
try %{ execute-keys -draft K <a-&> }
|
||||||
# Remove previous line's trailing spaces
|
# Remove previous line's trailing spaces
|
||||||
try %{ execute-keys -draft k :ruby-trim-indent <ret> }
|
try %{ execute-keys -draft k :crystal-trim-indent <ret> }
|
||||||
# Indent after start structure/opening statement
|
# Indent after start structure/opening statement
|
||||||
try %{ execute-keys -draft k <a-x> <a-k> ^\h*(?:begin|case|class|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|.+\bdo$|.+\bdo\h\|.+(?=\|))[^0-9A-Za-z_!?] <ret> j <a-gt> }
|
try %{ execute-keys -draft k <a-x> <a-k> ^\h*(?:begin|case|class|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|.+\bdo$|.+\bdo\h\|.+(?=\|))[^0-9A-Za-z_!?] <ret> j <a-gt> }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user