|
1 |
| -*easymotion.txt* Version 3.0 |
| 1 | +*easymotion.txt* Version 3.0 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | ______ __ ___ __ _
|
@@ -38,6 +38,7 @@ CONTENTS *easymotion-contents*
|
38 | 38 | Custom mappings ................. |easymotion-custom-mappings|
|
39 | 39 | Leader key .................. |easymotion-leader-key|
|
40 | 40 | Custom keys ................. |easymotion-custom-keys|
|
| 41 | + Autocommands .................... |easymotion-autocommands| |
41 | 42 | License ............................ |easymotion-license|
|
42 | 43 | Known bugs ......................... |easymotion-known-bugs|
|
43 | 44 | Contributing ....................... |easymotion-contributing|
|
@@ -1139,6 +1140,28 @@ Example: >
|
1139 | 1140 | See |easymotion-plug-table| for a table of motions that can be mapped
|
1140 | 1141 | and their default values.
|
1141 | 1142 |
|
| 1143 | +------------------------------------------------------------------------------ |
| 1144 | +Autocommands *easymotion-autocommands* |
| 1145 | + *EasyMotionPromptBegin* *EasyMotionPromptEnd* |
| 1146 | + |
| 1147 | +EasyMotion invokes two |User| autocommands, |EasyMotionPromptBegin| and |
| 1148 | +|EasyMotionPromptEnd|, so you can temporarily disable your linter to avoid |
| 1149 | +annoying syntax errors. |
| 1150 | + |
| 1151 | +EasyMotionPromptBegin Before the content of buffer is changed with |
| 1152 | + markers. If EasyMotion directly jumps to the |
| 1153 | + target (no prompts given), this autocommand will |
| 1154 | + not be executed. |
| 1155 | + |
| 1156 | +EasyMotionPromptEnd After the content of buffer and the undo tree are |
| 1157 | + restored. |
| 1158 | + |
| 1159 | +Example with coc.nvim: > |
| 1160 | +
|
| 1161 | + autocmd User EasyMotionPromptBegin silent! CocDisable |
| 1162 | + autocmd User EasyMotionPromptEnd silent! CocEnable |
| 1163 | +< |
| 1164 | + |
1142 | 1165 | ==============================================================================
|
1143 | 1166 | License *easymotion-license*
|
1144 | 1167 |
|
|
0 commit comments