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.16k stars 47 forks source link

illuminating across visible buffers? #17

Closed towc closed 5 years ago

towc commented 6 years ago

Hey again!

One thing I enjoy about incsearch is that it highlights results across all visible buffers. It would be nice for this plugin too.

RRethy commented 6 years ago

Implementation is a little tricky but I'll try it out over the next couple of days. Will try to make it an option to opt into.

Edit: Hit a bunch of snags, gonna pause work on this feature since the current method I got to 'work' was using windo then jumping back to the current window since windo will change which window is active. It's a pretty ugly implementation so I don't want to release it. Going to come back to this after I finish the plugin manager I've started work on. Hopefully by then I'll have found a cleaner method.

Edit: I don't think this is possible.

RRethy commented 5 years ago

Not possible afaik. Only option would be to use search highlighting, but that would clutter up the search history.

sunaku commented 5 years ago

You can use :keeppatterns to avoid modifying the search history. :neckbeard: