diff --git a/autoload/matchup/matchparen.vim b/autoload/matchup/matchparen.vim index a79e0ad..0a225cb 100644 --- a/autoload/matchup/matchparen.vim +++ b/autoload/matchup/matchparen.vim @@ -119,6 +119,11 @@ function! matchup#matchparen#reload() " {{{1 endif endfunction +" }}}1 +function! matchup#matchparen#update() " {{{1 + call s:matchparen.highlight(1) +endfunction + " }}}1 let s:matchparen = {} diff --git a/autoload/matchup/perf.vim b/autoload/matchup/perf.vim index f8cd256..7f255f9 100644 --- a/autoload/matchup/perf.vim +++ b/autoload/matchup/perf.vim @@ -54,7 +54,7 @@ function! matchup#perf#show_times() echo printf("%42s%11s%17s", 'average', 'last', 'maximum') echohl None for l:c in l:contexts - echohl Title + echohl Special echo '['.l:c.']' echohl None let l:states = filter(copy(l:keys), 'v:val =~# "^\\V'.l:c.'#"') diff --git a/doc/matchup.txt b/doc/matchup.txt index 6c5af44..08a1b55 100644 --- a/doc/matchup.txt +++ b/doc/matchup.txt @@ -623,22 +623,22 @@ will only work in nvim-0.2.1 and after. *g:matchup_matchparen_deferred_show_delay* Delay, in milliseconds, between when the cursor moves and when we start - checking if the cursor is on a match. Applies to both making highlights and + checking if the cursor is on a match. Applies to both making highlights and clearing them for deferred highlighting. Note: these delays cannot be changed dynamically and should be configured before the plugin loads (e.g., in your vimrc). - Defaults: 50 + Default: 50 *g:matchup_matchparen_deferred_hide_delay* If the cursor has not stopped moving, assume highlight is stale after this - many milliseconds. Stale highlights are hidden. + many milliseconds. Stale highlights are hidden. Note: this option cannot be changed dynamically. - Defaults: 700 + Default: 700 *g:matchup_matchparen_deferred_fade_time* *matchup-fading*