We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2822b4 commit 9e6836fCopy full SHA for 9e6836f
autoload/rust.vim
@@ -499,7 +499,15 @@ function! s:SearchTestFunctionNameUnderCursor() abort
499
500
" Search the end of test function (closing brace) to ensure that the
501
" cursor position is within function definition
502
- normal! %
+ if maparg('<Plug>(MatchitNormalForward)') ==# ''
503
+ normal! %
504
+ else
505
+ " Prefer matchit.vim official plugin to native % since the plugin
506
+ " provides better behavior than original % (#391)
507
+ " To load the plugin, run:
508
+ " :packadd matchit
509
+ execute 'normal' "\<Plug>(MatchitNormalForward)"
510
+ endif
511
if line('.') < cursor_line
512
return ''
513
endif
0 commit comments