1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-23 19:46:33 +03:00

Fix deindentation in scala.kak

This commit is contained in:
John Isom 2020-07-29 21:25:55 -06:00
parent d5fe3a2b12
commit 085fcc2088

View File

@ -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-&> ]
]
]