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

Can I get the position of next reference (row, column start, column end)? #193

Open gmnz opened 4 months ago

gmnz commented 4 months ago

Hi, can I get the position of next reference (row, column start, column end)? I'd like to use the 3 numbers in a custom function.

RRethy commented 4 months ago

Right now everything is in here but it doesn't offer a nice API, I'm open to PRs to extract this into a stateless function you can call.

gmnz commented 4 months ago

Thanks, I'll give it a try when I have time.