Nvim :help pages, generated
from source
using the tree-sitter-vimdoc parser.
:let loaded_matchparen = 1The plugin installs CursorMoved, CursorMovedI and WinEnter autocommands to redefine the match highlighting.
:NoMatchParenAnd to enable it again:
:DoMatchParenThe highlighting used is MatchParen. You can specify different colors with the ":highlight" command. Example:
:hi MatchParen ctermbg=blue guibg=lightblueBy default the plugin will highlight both the paren under the cursor and the matching one using the hl-MatchParen highlighting group. This may result in the cursor briefly disappearing from the screen as the MatchParen colors take over the cursor highlight. To prevent this from happening and have the plugin only highlight the matching paren and not the one under the cursor (effectively leaving the cursor style unchanged), you can set the "matchparen_disable_cursor_hl" variable:
:let matchparen_disable_cursor_hl = 1The characters to be matched come from the 'matchpairs' option. You can change the value to highlight different matches. Note that not everything is possible. For example, you can't highlight single or double quotes, because the start and end are equal.