In (Neo)Vim, how can I highlight the nearest pair of brackets which my cursor is inside of?

Viewed 58

To be clear, I don't want to highlight matching brackets when I hover over a bracket.

Let's say I have the following code:

function foo(bar) {

Say my cursor is hovering over the a in bar. I want (Neo)Vim to highlight both parentheses surrounding bar.

How can I do this?

0 Answers
Related