diff --git a/rc/filetype/gluon.kak b/rc/filetype/gluon.kak index 10a2cc2f..d2e23644 100644 --- a/rc/filetype/gluon.kak +++ b/rc/filetype/gluon.kak @@ -78,8 +78,8 @@ define-command -hidden gluon-trim-indent %{ try %{ execute-keys -draft -itersel s \h+$ d } } -define-command -hidden gluon-indent-on-new-line %< - evaluate-commands -draft -itersel %< +define-command -hidden gluon-indent-on-new-line %~ + evaluate-commands -draft -itersel %_ # copy // and /// comments prefix and following white spaces try %{ execute-keys -draft k s ^\h*\K///?\h* y gh j P } # preserve previous line indent @@ -90,8 +90,8 @@ define-command -hidden gluon-indent-on-new-line %< # or in try %{ execute-keys -draft \; k x (\(|\{|\[|=|->|then|else|rec|in)$ j } # deindent closing brace(s) when after cursor - try %{ execute-keys -draft ^\h*[})\]] gh / [})\]] m 1 } - > -> + try %< execute-keys -draft ^\h*[})\]] gh / \})\]] m 1 > + _ +~ ยง