diff --git a/rc/filetype/crystal.kak b/rc/filetype/crystal.kak index 725a2b3d..dbb1168c 100644 --- a/rc/filetype/crystal.kak +++ b/rc/filetype/crystal.kak @@ -198,6 +198,10 @@ define-command -hidden crystal-indent-on-new-line %{ } define-command -hidden crystal-insert-on-new-line %{ + evaluate-commands -no-hooks -draft -itersel %{ + # Copy comment prefix and following whitespaces + try %{ execute-keys -draft k s '^\h*\K#\h*' y j gl p } + } } define-command -hidden crystal-indent-on-char %{