Remove electric behavior for end keyword
Correctly indentint on "end" keyword seems very hard, it is simpler to remove it. And we already insert "end" in ruby-insert-on-new-line hook, so the removal shouldn't hurt too much.
This commit is contained in:
parent
148ad6c1ab
commit
02e625e8fb
|
@ -156,7 +156,6 @@ define-command -hidden ruby-indent-on-char %{
|
||||||
try %{ execute-keys -draft <a-x> <a-k> ^ \h * (elsif) $ <ret> <a-a> i <a-semicolon> <a-?> ^ \h * (if) <ret> <a-S> 1<a-&> }
|
try %{ execute-keys -draft <a-x> <a-k> ^ \h * (elsif) $ <ret> <a-a> i <a-semicolon> <a-?> ^ \h * (if) <ret> <a-S> 1<a-&> }
|
||||||
try %{ execute-keys -draft <a-x> <a-k> ^ \h * (when) $ <ret> <a-a> i <a-semicolon> <a-?> ^ \h * (case) <ret> <a-S> 1<a-&> }
|
try %{ execute-keys -draft <a-x> <a-k> ^ \h * (when) $ <ret> <a-a> i <a-semicolon> <a-?> ^ \h * (case) <ret> <a-S> 1<a-&> }
|
||||||
try %{ execute-keys -draft <a-x> <a-k> ^ \h * (rescue) $ <ret> <a-a> i <a-semicolon> <a-?> ^ \h * (begin|def) <ret> <a-S> 1<a-&> }
|
try %{ execute-keys -draft <a-x> <a-k> ^ \h * (rescue) $ <ret> <a-a> i <a-semicolon> <a-?> ^ \h * (begin|def) <ret> <a-S> 1<a-&> }
|
||||||
try %{ execute-keys -draft <a-x> <a-k> ^ \h * (end) $ <ret> <a-a> i <a-semicolon> <a-?> ^ \h * (begin|case|class|def|for|if|module|unless|until|while) <ret> <a-S> 1<a-&> }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
c<space><space>end
|
|
@ -0,0 +1,6 @@
|
||||||
|
class MyClass
|
||||||
|
def method
|
||||||
|
%( )
|
||||||
|
|
||||||
|
expression
|
||||||
|
end
|
|
@ -0,0 +1,6 @@
|
||||||
|
class MyClass
|
||||||
|
def method
|
||||||
|
end
|
||||||
|
|
||||||
|
expression
|
||||||
|
end
|
|
@ -0,0 +1,3 @@
|
||||||
|
source "%val{runtime}/colors/default.kak"
|
||||||
|
source "%val{runtime}/rc/filetype/ruby.kak"
|
||||||
|
set buffer filetype ruby
|
Loading…
Reference in New Issue
Block a user