Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smartcase not handled correctly #64

Open
no-more-secrets opened this issue Jun 25, 2023 · 2 comments
Open

smartcase not handled correctly #64

no-more-secrets opened this issue Jun 25, 2023 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@no-more-secrets
Copy link

no-more-secrets commented Jun 25, 2023

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
Copy link
Owner

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

@kevinhwang91 kevinhwang91 added bug Something isn't working help wanted Extra attention is needed labels Jun 25, 2023
@no-more-secrets
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants