Fix deindentation in protobuf.kak

This commit is contained in:
John Isom 2020-07-29 20:31:43 -06:00
parent 53188e66c7
commit 70d1aa114b

View File

@ -76,6 +76,8 @@ define-command -hidden protobuf-indent-on-newline %~
try %{ execute-keys -draft k<a-x> s \h+$ <ret>d }
# copy // comments prefix
try %{ execute-keys -draft <semicolon><c-s>k<a-x> s ^\h*\K/{2,}(\h*(?=\S))? <ret> y<c-o>P<esc> }
# deindent closing brace(s) when after cursor
try %[ execute-keys -draft <a-x> <a-k> ^\h*\} <ret> gh / \} <ret> m <a-S> 1<a-&> ]
]
~