Skip to content

Commit 41bbb8c

Browse files
authored
Merge pull request #439 from easymotion/revert-437-jakelinzy
Revert "Add autocommands to notice linters"
2 parents 96f1d4a + 9e80b06 commit 41bbb8c

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

autoload/EasyMotion.vim

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,9 +1095,6 @@ function! s:PromptUser(groups) "{{{
10951095
let lines_items = items(lines)
10961096
" }}}
10971097

1098-
" Invoke autocmd so the user can temporarily disable linters, etc.
1099-
doautocmd User EasyMotionPromptBegin
1100-
11011098
" -- Put labels on targets & Get User Input & Restore all {{{
11021099
" Save undo tree
11031100
let undo_lock = EasyMotion#undo#save()
@@ -1151,9 +1148,6 @@ function! s:PromptUser(groups) "{{{
11511148
call undo_lock.restore()
11521149

11531150
redraw
1154-
1155-
" Invoke autocmd
1156-
doautocmd User EasyMotionPromptEnd
11571151
endtry "}}}
11581152

11591153
" -- Check if we have an input char ------ {{{

doc/easymotion.txt

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ CONTENTS *easymotion-contents*
3838
Custom mappings ................. |easymotion-custom-mappings|
3939
Leader key .................. |easymotion-leader-key|
4040
Custom keys ................. |easymotion-custom-keys|
41-
Autocommands .................... |easymotion-autocommands|
4241
License ............................ |easymotion-license|
4342
Known bugs ......................... |easymotion-known-bugs|
4443
Contributing ....................... |easymotion-contributing|
@@ -1140,29 +1139,6 @@ Example: >
11401139
See |easymotion-plug-table| for a table of motions that can be mapped
11411140
and their default values.
11421141

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-
1152-
EasyMotionPromptBegin Before the content of buffer is changed with
1153-
markers. If EasyMotion directly jumps to the
1154-
target (no prompts given), this autocommand will
1155-
not be executed.
1156-
1157-
EasyMotionPromptEnd After the content of buffer and the undo tree are
1158-
restored.
1159-
1160-
Example with coc.nvim: >
1161-
1162-
autocmd User EasyMotionPromptBegin silent! CocDisable
1163-
autocmd User EasyMotionPromptEnd silent! CocEnable
1164-
<
1165-
11661142
==============================================================================
11671143
License *easymotion-license*
11681144

0 commit comments

Comments
 (0)