diff options
| author | John Isom <John.Isom2001@gmail.com> | 2020-07-29 21:25:55 -0600 |
|---|---|---|
| committer | John Isom <John.Isom2001@gmail.com> | 2020-07-29 21:25:55 -0600 |
| commit | 085fcc2088d0eec5575b68cf886e5c2f982e37f7 (patch) | |
| tree | 27d672a3330514c5cb3138f09f9706be8268899f /rc/filetype/scala.kak | |
| parent | d5fe3a2b12f0f6a1bb87449c45db323eb2c43796 (diff) | |
Fix deindentation in scala.kak
Diffstat (limited to 'rc/filetype/scala.kak')
| -rw-r--r-- | rc/filetype/scala.kak | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rc/filetype/scala.kak b/rc/filetype/scala.kak index 29884d20..48dfa937 100644 --- a/rc/filetype/scala.kak +++ b/rc/filetype/scala.kak @@ -69,6 +69,8 @@ define-command -hidden scala-indent-on-new-line %[ try %[ execute-keys -draft k : scala-trim-indent <ret> ] # indent after lines ending with { try %[ execute-keys -draft k <a-x> <a-k> \{$ <ret> j <a-gt> ] + # deindent closing brace when after cursor + try %[ execute-keys -draft <a-x> <a-k> ^\h*\} <ret> gh / \} <ret> m <a-S> 1<a-&> ] ] ] |
