summaryrefslogtreecommitdiff
path: root/rc/filetype/javascript.kak
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-04-15 08:14:17 +1000
committerMaxime Coste <mawww@kakoune.org>2022-07-05 08:43:40 +1000
commit2d8456db102e13f37a5cd271868c330d73580f6d (patch)
treee9c1c36be5bfa2ed61bea03462e1841bcde68a91 /rc/filetype/javascript.kak
parent266d1c37d0d970a7eff747f5e6a5773a3cea39d8 (diff)
Move user mappings to <space> and keep/remove selection to ,
Diffstat (limited to 'rc/filetype/javascript.kak')
-rw-r--r--rc/filetype/javascript.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/javascript.kak b/rc/filetype/javascript.kak
index 1f39aa6a..64c7c862 100644
--- a/rc/filetype/javascript.kak
+++ b/rc/filetype/javascript.kak
@@ -146,7 +146,7 @@ define-command -hidden javascript-indent-on-new-line %<
# Validate selection and get first and last char
execute-keys <a-k>\A[{(](\h*\S+)+\n<ret> <a-K>"(([^"]*"){2})*<ret> <a-K>'(([^']*'){2})*<ret> <a-:><a-semicolon>L <a-S>
# Remove possibly incorrect indent from new line which was copied from previous line
- try %< execute-keys -draft <space> <a-h> s\h+<ret> d >
+ try %< execute-keys -draft , <a-h> s\h+<ret> d >
# Now indent and align that new line with the opening parenthesis/brace
execute-keys 1<a-&> &
> >