diff --git a/rc/filetype/zig.kak b/rc/filetype/zig.kak index ac14447e..602c7dab 100644 --- a/rc/filetype/zig.kak +++ b/rc/filetype/zig.kak @@ -111,9 +111,11 @@ define-command -hidden zig-trim-indent %{ define-command -hidden zig-indent-on-new-line %< evaluate-commands -draft -itersel %< - # copy // or /// comments prefix and following white spaces try %< + # copy // or /// comments prefix and following whitespace execute-keys -draft k s ^\h*\K///?\h* y gh j P + # preserve indent level + try %< execute-keys -draft K > > catch %< # preserve indent level try %< execute-keys -draft K >