From becb1ef8433b87bf29a78d2a6ef0211fbd981142 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Sat, 19 Nov 2022 08:29:03 +0100 Subject: [PATCH] Fix hare new line insert indentation after comments At the moment, inserting a new line while being in a comment result in a "//" instead of "//". To fix this, we just re-order both InsertChar hooks. --- rc/filetype/hare.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/hare.kak b/rc/filetype/hare.kak index 8ba75c90..3f72db82 100644 --- a/rc/filetype/hare.kak +++ b/rc/filetype/hare.kak @@ -7,8 +7,8 @@ hook global BufCreate .*[.]ha %{ hook global WinSetOption filetype=hare %{ require-module hare hook window ModeChange pop:insert:.* -group hare-trim-indent hare-trim-indent - hook window InsertChar \n -group hare-indent hare-indent-on-new-line hook window InsertChar \n -group hare-insert hare-insert-on-new-line + hook window InsertChar \n -group hare-indent hare-indent-on-new-line hook window InsertChar \{ -group hare-indent hare-indent-on-opening-curly-brace hook window InsertChar \} -group hare-indent hare-indent-on-closing-curly-brace }