Fix indentation of auto-extended comments

This commit is contained in:
Isaac Freund 2020-03-22 20:19:43 +01:00
parent 6198cc5e47
commit 9396f508c2
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -111,9 +111,11 @@ define-command -hidden zig-trim-indent %{
define-command -hidden zig-indent-on-new-line %< define-command -hidden zig-indent-on-new-line %<
evaluate-commands -draft -itersel %< evaluate-commands -draft -itersel %<
# copy // or /// comments prefix and following white spaces
try %< try %<
# copy // or /// comments prefix and following whitespace
execute-keys -draft k <a-x> s ^\h*\K///?\h* <ret> y gh j P execute-keys -draft k <a-x> s ^\h*\K///?\h* <ret> y gh j P
# preserve indent level
try %< execute-keys -draft <semicolon> K <a-&> >
> catch %< > catch %<
# preserve indent level # preserve indent level
try %< execute-keys -draft <semicolon> K <a-&> > try %< execute-keys -draft <semicolon> K <a-&> >