Merge remote-tracking branch 'geppettodivacin/protobuf-newline-fix'

This commit is contained in:
Maxime Coste 2024-01-17 21:00:26 +11:00
commit 455cd73a93

View File

@ -76,7 +76,7 @@ define-command -hidden protobuf-trim-indent %{
} }
} }
define-command -hidden protobuf-insert-on-new-line %{ define-command -hidden protobuf-insert-on-newline %{
evaluate-commands -draft -itersel %[ evaluate-commands -draft -itersel %[
# copy // comments prefix # copy // comments prefix
try %{ execute-keys -draft <semicolon><c-s>kx s ^\h*\K/{2,}(\h*(?=\S))? <ret> y<c-o>P<esc> } try %{ execute-keys -draft <semicolon><c-s>kx s ^\h*\K/{2,}(\h*(?=\S))? <ret> y<c-o>P<esc> }