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

Fix illumination not changing for differently cased words #30

Closed bobrippling closed 5 years ago

bobrippling commented 5 years ago

This fixes cases where moving to text that only differs in case wouldn't change the illumination, when the user has 'ignorecase' set.

For example, in a file with the following contents and the cursor on the first line, only the strings "abc" will be highlighted, but moving onto "ABC" doesn't change this to highlight the "ABC" strings.

abc
ABC
abc
ABC
RRethy commented 5 years ago

Nice catch!