Fix deindentation in protobuf.kak
This commit is contained in:
parent
53188e66c7
commit
70d1aa114b
|
@ -76,6 +76,8 @@ define-command -hidden protobuf-indent-on-newline %~
|
||||||
try %{ execute-keys -draft k<a-x> s \h+$ <ret>d }
|
try %{ execute-keys -draft k<a-x> s \h+$ <ret>d }
|
||||||
# copy // comments prefix
|
# 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> }
|
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-&> ]
|
||||||
]
|
]
|
||||||
~
|
~
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user