RRethy / vim-illuminate

illuminate.vim - (Neo)Vim plugin for automatically highlighting other uses of the word under the cursor using either LSP, Tree-sitter, or regex matching.
2.12k stars 44 forks source link

Feature Request: Illuminate the closest parenthesis under the cursor #149

Closed kaykhan closed 1 year ago

kaykhan commented 1 year ago

Hi,

Would it be possible to "illuminate" the closest parenthesis under the cursor word like it does in vscode. See example screenshot.

You can see how the closest parenthesis "{ }" have been Illuminate with a block cursor. image

RRethy commented 1 year ago

It's possible but will require code changes. I'll leave this issue since I wouldn't be opposed to adding this, just not sure when I'll get around to it.

utilyre commented 1 year ago

Hello, I've recently made a plugin that does exactly that! See https://github.com/utilyre/sentiment.nvim

kaykhan commented 1 year ago

Hello, I've recently made a plugin that does exactly that! See https://github.com/utilyre/sentiment.nvim

Hey, i just got around to trying this. Works nicely, thanks

unphased commented 1 year ago

I'll note this functionality is also possible with vim-matchup with e.g. vim.g.matchup_matchparen_hi_surround_always = 1