summaryrefslogtreecommitdiff
path: root/rc/filetype/javascript.kak
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-10-16 20:19:43 +1100
committerMaxime Coste <mawww@kakoune.org>2019-10-16 20:45:53 +1100
commite4fb70ebec80edcd17f0e00823780e4798a3fb1a (patch)
tree8e45c2e340a63ca05aa73f8a44bf3c9d59494c0b /rc/filetype/javascript.kak
parent3a36a2486e12be9150e28fa81ac707d65c425d45 (diff)
Replace ModeChange hooks by ModePush and ModePop
Remove deprecated InsertBegin, InsertEnd, NormalBegin, NormalEnd hooks. Closes #2545
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 d18aec24..73894ab3 100644
--- a/rc/filetype/javascript.kak
+++ b/rc/filetype/javascript.kak
@@ -15,7 +15,7 @@ hook global BufCreate .*[.](ts)x? %{
hook global WinSetOption filetype=(javascript|typescript) %{
require-module javascript
- hook window ModeChange insert:.* -group "%val{hook_param_capture_1}-trim-indent" javascript-trim-indent
+ hook window ModeChange pop:insert:.* -group "%val{hook_param_capture_1}-trim-indent" javascript-trim-indent
hook window InsertChar .* -group "%val{hook_param_capture_1}-indent" javascript-indent-on-char
hook window InsertChar \n -group "%val{hook_param_capture_1}-indent" javascript-indent-on-new-line