Closed renauga closed 3 months ago
You can use the should_enable = function(bufnr) return true end,
field in the config. Just add your own logic to disable/enable.
But how do I change the string being illuminated? Currently, in visual mode, the reference under the cursor is illuminated, not the selection.
You probably need a different plugin, vim-illuminate doesn't provide the functionality to highlight other occurrences of a visual selection.
I couldn't find a plugin for this. It looks a like a good feature to add to vim-illuminate. It's similar to the current use of the plugin and makes more sense in visual mode.
I want the plugin to work like this: