mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
@@ -319,8 +319,10 @@ function! s:matchparen.highlight(...) abort dict " {{{1
|
||||
endif
|
||||
|
||||
for l:corr in l:corrlist
|
||||
call add(w:matchup_match_id_list, matchaddpos('MatchParen',
|
||||
\ [[l:corr.lnum, l:corr.cnum, strlen(l:corr.match)]]))
|
||||
let l:group = l:corr.match_index == l:current.match_index
|
||||
\ ? 'MatchParenCur' : 'MatchParen'
|
||||
call add(w:matchup_match_id_list, matchaddpos(l:group,
|
||||
\ [[l:corr.lnum, l:corr.cnum, strlen(l:corr.match)]]))
|
||||
endfor
|
||||
|
||||
call matchup#perf#toc('matchparen.highlight', 'end')
|
||||
|
||||
@@ -43,6 +43,8 @@ endtry
|
||||
command! NoMatchParen call matchup#matchparen#toggle(0)
|
||||
command! DoMatchParen call matchup#matchparen#toggle(1)
|
||||
|
||||
hi def link MatchParenCur MatchParen
|
||||
|
||||
if get(g:, 'matchup_override_vimtex', 0)
|
||||
let g:vimtex_matchparen_enabled = 0
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user