kevinhwang91 / nvim-hlslens

Hlsearch Lens for Neovim
BSD 3-Clause "New" or "Revised" License
769 stars 11 forks source link

smartcase not handled correctly #64

Open no-more-secrets opened 1 year ago

no-more-secrets commented 1 year ago

Looks like hlslens checks vim.o.smartcase and, if it is on, respects it. However, that causes issues when initiating a search via *, which does not respect vim.o.smartcase. So e.g., if I have vim.o.smartcase = true and then the following:

switch
SWITCH
switch

and I put the cursor on the SWITCH and hit * then hlslens produces lens only for SWITCH, while vim will highlight all three lines, producing contradictory visual indicators. Any way to fix this? This has downstream effects also on other plugins such as scrollbar.nvim which rely on hlslens.

kevinhwang91 commented 1 year ago

Can't fix it, I use https://github.com/haya14busa/vim-asterisk.

no-more-secrets commented 1 year ago

Thanks, but there is something that doesn't feel right about installing another plugin to work around an issue caused by a different plugin :-) If you really think this is not fixable then feel free to close.