Yaml indent after -

This commit is contained in:
Ivan Tham 2020-10-02 14:24:04 +08:00
parent 9401a9fd25
commit 1809035c15

View File

@ -59,6 +59,8 @@ define-command -hidden yaml-indent-on-new-line %{
try %{ execute-keys -draft k : yaml-trim-indent <ret> }
# indent after :
try %{ execute-keys -draft <space> k x <a-k> :$ <ret> j <a-gt> }
# indent after -
try %{ execute-keys -draft <space> k x <a-k> ^\h*- <ret> j <a-gt> }
}
}