mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-17 17:38:01 +00:00
Allow overriding highlight in popup window, re #93
This commit is contained in:
@@ -562,9 +562,11 @@ function! s:ensure_match_popup() abort " {{{1
|
||||
endif
|
||||
|
||||
" create a popup and store its winid
|
||||
let t:match_popup = popup_create('', {
|
||||
\ 'hidden': v:true,
|
||||
\})
|
||||
let l:opts = {'hidden': v:true}
|
||||
if has_key(g:matchup_matchparen_offscreen, 'highlight')
|
||||
let l:opts.highlight = g:matchup_matchparen_offscreen.highlight
|
||||
endif
|
||||
let t:match_popup = popup_create('', l:opts)
|
||||
|
||||
if !has('patch-8.1.1406')
|
||||
" in case 'hidden' in popup_create-usage is unimplemented
|
||||
|
||||
@@ -633,6 +633,14 @@ Module matchparen~
|
||||
|
||||
Default: 0
|
||||
|
||||
highlight~
|
||||
For popup method on vim only: set to a highlight group to override the
|
||||
colors in the popup window. The default is to use *hl-Pmenu*. Example:
|
||||
>
|
||||
highlight! OffscreenPopup guibg=red guifg=blue
|
||||
let g:matchup_matchparen_offscreen
|
||||
\ = {'method': 'popup', 'highlight': 'OffscreenPopup'}
|
||||
<
|
||||
Default: `{'method': 'status'}`
|
||||
|
||||
*g:matchup_matchparen_stopline*
|
||||
|
||||
Reference in New Issue
Block a user