diff --git a/rc/fish.kak b/rc/fish.kak index 2f5f9c15..769b6f26 100644 --- a/rc/fish.kak +++ b/rc/fish.kak @@ -49,6 +49,8 @@ def -hidden _fish_indent_on_new_line %{ try %{ exec -draft k : _fish_filter_around_selections } # copy '#' comment prefix and following white spaces try %{ exec -draft k x s ^\h*\K#\h* y j p } + # indent after (case|else) commands + try %{ exec -draft k x (case|else) j } # indent after (begin|for|function|if|switch|while) commands and add 'end' command try %{ exec -draft k x (begin|for|function|(? x y p j a end k } }