summaryrefslogtreecommitdiff
path: root/rc/filetype/yaml.kak
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-10-02 14:24:04 +0800
committerIvan Tham <pickfire@riseup.net>2020-10-02 14:24:04 +0800
commit1809035c15927b2920206242347d5b575a7ac9cc (patch)
tree119f1ed3263c4ec9f9c746ec6572112c5e3c2b17 /rc/filetype/yaml.kak
parent9401a9fd2514559ec486aeef778251d355a86854 (diff)
Yaml indent after -
Diffstat (limited to 'rc/filetype/yaml.kak')
-rw-r--r--rc/filetype/yaml.kak2
1 files changed, 2 insertions, 0 deletions
diff --git a/rc/filetype/yaml.kak b/rc/filetype/yaml.kak
index d1370785..48834414 100644
--- a/rc/filetype/yaml.kak
+++ b/rc/filetype/yaml.kak
@@ -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> }
}
}