hop.nvim
hop.nvim copied to clipboard
Case insensitivitiy can't be disabled
When I try setting the option case_insensitive to false, it doesn't seem to affect whether upper or lowercase characters are matched or not.
Here's an elaborate example:
- Run
:lua require'hop'.setup{ case_insensitive = 'false' }or load the minimalinit.luabelow - Open a new buffer
- Write
asdfgASDFG - Move the cursor to the first character
- Run
:HopChar1 - Press
d
The result is that D becomes hinted and I can jump on it. The expected behaviour would be that the cursor immediately jumps to d, because that would be the only match.
I can reproduce this in Neovim v0.5.0-dev+1459-g384f9870f with a minimal init.lua:
vim.cmd([[let $PLUGIN_DIRECTORY = '~/.local/share/nvim/plugtest']])
vim.cmd([[packadd hop.nvim]])
require'hop'.setup {
case_insensitive = 'false',
}
case_insentitive = false whithout the single quote works for me.
case_insentitive = falsewhithout the single quote works for me.
I've just tried your suggestion. It doesn't seem to make any difference for me.
Do you still have that issue @maxigaz? A bunch of changes were merged lately regarding case sensitivity.
Yes, I can still reproduce it in Neovim v0.5.1.
I probably need to have a look at it again, especially if you still reproduce @maxigaz.
case_insentitive = falsewhithout the single quote works for me.
This also works for me :smiley: