mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-28 09:07:19 +03:00
Update deindenting in javascript.kak
This commit is contained in:
parent
d7e9702228
commit
60a1b0cfcb
@ -63,7 +63,7 @@ define-command -hidden javascript-indent-on-new-line %<
|
||||
# indent after lines beginning / ending with opener token
|
||||
try %_ execute-keys -draft k <a-x> <a-k> ^\h*[[{]|[[{]$ <ret> j <a-gt> _
|
||||
# deindent closing token(s) when after cursor
|
||||
try %_ execute-keys -draft <a-x> <a-k> ^\h*[}\]]+\;?\h*$ <ret> \; <a-/> [}\]] <ret> m <a-S> 1<a-&> _
|
||||
try %_ execute-keys -draft <a-x> <a-k> ^\h*[}\]]+\h*\;?\h*$ <ret> \; <a-/> [}\]] <ret> m <a-S> 1<a-&> _
|
||||
>
|
||||
>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user