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.lua
below - 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',
}