diff options
| author | Stacy Harper <contact@stacyharper.net> | 2022-11-19 08:29:03 +0100 |
|---|---|---|
| committer | Stacy Harper <contact@stacyharper.net> | 2022-11-19 08:34:54 +0100 |
| commit | becb1ef8433b87bf29a78d2a6ef0211fbd981142 (patch) | |
| tree | 802712e8fc79fb2a0400daa1d5a82423b09797a0 | |
| parent | 91d45a100a39345f06d9789ded9172fe60887c27 (diff) | |
Fix hare new line insert indentation after comments
At the moment, inserting a new line while being in a comment result in a
"//<indentation>" instead of "<indentation>//".
To fix this, we just re-order both InsertChar hooks.
| -rw-r--r-- | rc/filetype/hare.kak | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
